jeffk l33t
Joined: 13 Sep 2003 Posts: 671
|
Posted: Sat Dec 03, 2011 4:35 am Post subject: boot logging: /var/log/rc.log on read-only filesystem |
|
|
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. |
|