Click to See Complete Forum and Search --> : klogd not restarting after logrotate


johnwebb
03-29-2001, 02:51 AM
I found my kernel log to be 0 with a time stamp that was the same as the last logrotation. I am guessing that klogd did not restart properly. After restarting klogd logging resumed. Here is the entry from /etc/logrotate.d/syslog ...

/var/log/kernel {

postrotate
/usr/bin/killall -9 klogd
/usr/sbin/klogd &
endscript

}

I am running RedHat 6.2 with security updates installed, and there was an update for this package.

bdg1983
03-29-2001, 09:14 AM
Don't see anything wrong with the script.

Is klogd still not starting itself after a reboot or did the problem only happen once?

johnwebb
03-29-2001, 12:19 PM
It apears that klogd is still running since starting it manually. I had just recently put this machine into service so this was the first log rotation. I have not tried rebooting the system to see if klogd would restart.

johnwebb
03-29-2001, 01:18 PM
I feel stupid now. After hours of searching google looking for an answer I found the it. klogd is in /sbin not /usr/sbin the path is correct in the startup scripts but was wrong in /etc/logrotate.d/syslog.

I change /etc/logrotate.d/syslog to /sbin/klogd which should solve the problem but I wonder if I should create a symlink to /usr/sbin/klogd.

bdg1983
03-29-2001, 07:43 PM
Don't know if it's necessary.

Why not try it without the symlink first? You can always add the symlink if problems persist.