OpenBSD | newsyslog | postrotate command

Your daemon doesn’t write to his logfile after rotating log using newsyslog? You are executing a postrotate command in newsyslog.conf?
The reason for this strange behaviour is that in case of executing a postrate command per definition (rtfm newsyslog.conf) no SIGHUP will be sent to syslogd.
Solution: execute a pkill -HUP syslogd afterwards:

 #/var/log/maillog                       640  7     1    *     Z
 /var/log/maillog                        640  7     1    *     Z "/usr/bin/tailkick /var/log/maillog;pkill -HUP syslogd"
 /var/log/mailcontrol/mailcontrol.log    600  8     *    $D0   Z
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s