[Oisf-users] Correct kill signal for log rotation

C. L. Martinez carlopmart at gmail.com
Fri Aug 9 11:10:20 UTC 2013


Hi all,

 I have configured logrotate to rotate suricata's logs in one of four
sensors with the following configuration:

/nsm/sensor_data/idpsuricata02/*.log {
        missingok
        daily
        rotate 7
        copytruncate
        delaycompress
        notifempty
        sharedscripts
        postrotate
                /bin/kill -HUP `cat /var/run/idpsuricata02.pid 2>
/dev/null` 2> /dev/null || true
        endscript
}

Is correct to send HUP signal to accomplish this??

Thanks.


More information about the Oisf-users mailing list