Cowles, Steve <mailto:[EMAIL PROTECTED]> wrote:

> May I suggest that you place your sonicwall/log entry in the correct
> file or add a postrotate directive to what you have above. For
> reference: try /etc/logrotate.d/syslog -or- create your own logrotate
> file. Notice that most of the scripts in logrotate.d perform a
> postrotate by bouncing syslogd or the application writing to the
> logfile. Which will then allow syslogd or the application to write to
> the logfiles files after they have been moved and recreated by
> logrotate.

Ok, this morning I commented out my original sonicwall directive from 
/etc/logrotate.conf. I then created a new file in /etc/logrotate.d called sonicwall.

[EMAIL PROTECTED] /etc/logrotate.d]# cat sonicwall
/var/log/sonicwall.log {
        sharedscripts
        daily
        rotate 7
        compress
        create
        postrotate
                /bin/kill -HUP `cat /var/run/syslogd.pid 2> (wrap)
                        /dev/null` 2> /dev/null || true
        endscript
}

This seems to be inline with what you suggested, is this correct?


Thanks,
Chris.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to