Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boot logging: /var/log/rc.log on read-only filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 671

PostPosted: Sat Dec 03, 2011 4:35 am    Post subject: boot logging: /var/log/rc.log on read-only filesystem Reply with quote

I would like to get a closer look at some of the info scrolling by during boot service init. I enabled rc boot logging:
Code:
$ grep log /etc/rc.conf
# Linux users could specify /sbin/sulogin
rc_shell=/sbin/sulogin
# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
# logging can take place and as such cannot log the sysinit runlevel.
rc_logger="YES"
# Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
#rc_log_path="/var/log/rc.log"

Code:
$ ls -al /var/log/rc.log
-rw-r--r-- 1 root root 56625 Dec  2 19:37 /var/log/rc.log

But /var/log/rc.log is on a read-only filesystem at boot, and logs nothing signficant before
Code:
rc default logging started at Fri Dec  2 19:37:17 2011

 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Starting FireHOL ...

WARNING
File '/etc/firehol/RESERVED_IPS' is more than 90 days old.
You should update it to ensure proper operation of your firewall.

Run the supplied get-iana.sh script to generate this file.

 [ ok ]
 * Starting syslog-ng ...
 [ ok ]
 * Starting unbound ...
[1322883438] unbound[4064:0] warning: increased limit(open files) from 1024 to 4152
 [ ok ]
 * Mounting network filesystems ...
 [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Checking nginx' configuration ...
 [ ok ]
 * Starting nginx ...
 [ ok ]
 * Starting ntpd ...
 [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Starting PostgreSQL ...
 [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Starting sshd ...
 [ ok ]
 * Doing udev cleanups
 * Starting vixie-cron ...
 [ ok ]
 * Starting wicd daemon ...
 [ ok ]
 * Starting local
 [ ok ]

rc default logging stopped at Fri Dec  2 19:37:21 2011

Using an fstab of:
Code:
$ cat /etc/fstab
# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>
/dev/sda1               /               ext4            noatime,nobh,data=writeback,nouser_xattr                0 1
/dev/cdrom              /mnt/cdrom      auto            noauto,ro               0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
/swapfile1              swap            swap            defaults                0 0

Is this as good as it's going to get for early boot activity logging? If so, how do I at least turn off that warning message that scrolls by about the rc.log on a read-only filestem?

Thanks.
Back to top
View user's profile Send private message
poncho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2011
Posts: 92

PostPosted: Sat Dec 03, 2011 9:11 am    Post subject: Reply with quote

Bug 390645 - sys-apps/openrc: /var/log/rc.log is written before fsck/localmount
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum