cancel
Showing results for 
Search instead for 
Did you mean: 

logrotate syslog

 
SOLVED
Go to solution
Highlighted
Ratzie
Super Advisor

logrotate syslog

I have installed logrotate to rotate some off the system logs and other logs as well.

When logrotate rotated the /var/adm/syslog/syslog.log it did not restart the daemon nor did I get another syslog.log

How would I set it up...
I thought I would have to HUP the daemon...


#Syslog

/var/adm/syslog/syslog.log {
rotate 7
weekly
postrotate
/usr/sbin/killall -HUP syslogd
endscript
}

2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: logrotate syslog

A SIGHUP only causes syslogd to reread its configuration file. You actually need to send it a SIGTERM to stop the daemon, then rotate the logs, and restart the daemon.
If it ain't broke, I can fix that.
Ratzie
Super Advisor

Re: logrotate syslog

Thanks