syslog.conf -->how to set boot.log?
HI,
I tried to add the following line onto syslog.conf local7.* /var/log/boot.log But when i reboot machine there is only a 0 byte file create with no content. Can anyone help me with the correct way of recording reboot info??? Thanks Chris |
Hi,
I guess you want to put the output of dmesg into boot.log. syslogd is started 'late' in the boot process, all message generated before that cannot be controlled by syslog. I'm not an Ubuntu user, but most ditro's come with a sysklogd (or rc.sysklogd) script in the init.d (or rc.d) directory. Placing the following commands in the 'start' section of that script will create a boot.log: mv /var/log/boot.log /var/log/boot.prev 2>/dev/null /bin/dmesg > /var/log/boot.log This will also create a previous boot file. Hope this helps. |
All times are GMT -5. The time now is 11:07 PM. |