syslog stops logging after log rotation
<p>Every time after newsyslog rotates the log file, syslog stops logging into the file. Until a syslogd restart is done. </p>

<pre><code>(myserver:wheel)# logger -p local1.info -t myprocess "hello thiru"; ll myfile.log; cat myfile.log
-rw-r--r--  1 root  wheel     0B Nov 10 11:26 myfile.log

(myserver:wheel)# /etc/rc.d/syslogd restart
Stopping syslogd.
Starting syslogd.

(myserver:wheel)# logger -p local1.info -t myprocess "hello thiru"; ll myfile.log; cat myfile.log
-rw-r--r--  1 root  wheel    44B Nov 10 12:04 myfile.log
Nov 10 12:04:31 myserver myprocess: hello thiru 
(myserver:wheel)#
</code></pre>

<p>On <code>Linux</code> (which uses <code>logrotate</code>), we can solve this by doing <code>syslog/rsyslog restart</code> in the <code>postrotate</code> section of the logroate conf. </p>

<p>Is there something similar to <code>postrotate</code> in <code>newsyslog</code>?</p>

<p><strong>Edit:</strong></p>

<p>Syslog and newsyslog conf files:</p>

<pre><code>(TPC-E11-36:wheel)# cat /etc/newsyslog.d/newsyslog-myprocess.conf
/var/log/myfile.log 644 20 10000 * Z

(TPC-E11-36:wheel)# cat /etc/syslog.d/syslog-myprocess.conf
!myprocess
local1.info /var/log/myfile.log
(TPC-E11-36:wheel)#
</code></pre>