[Dovecot] Rotating the dovecot log file
Using FreeBSD-7.2, I am attempting to configure the system newsyslog utility to rotate the dovecot.log file. I would prefer to use the system utility rather than the one described on the dovecot wiki for rotating the file. Unfortunately, it is not working. This is the error message that is spawned:
newsyslog: illegal signal number in config file: /var/log/dovecot.log root:wheel 0666 1 * $M1D0 CJ /var/run/dovecot/master.pid USR1
Does anyone have an idea how to get this to work?
Thanks!
-- Jerry gesbbb@yahoo.com
|::::======= |::::======= |=========== |=========== |
Wilner's Observation: All conversations with a potato should be conducted in private.
On Sat, 24 Oct 2009 15:27:18 +0200 Edgar Fuß ef@math.uni-bonn.de replied:
newsyslog: illegal signal number in config file: /var/log/dovecot.log root:wheel 0666 1 * $M1D0 CJ /var/run/ dovecot/master.pid USR1 I'm not sure about FreeBSD, but I think in NetBSD, that had to be
SIGUSR1, not USR1.
I just checked and found that USR1 equals signal number 30. I replaced the USR1 with 30 and it seems to be working. I will have to wait awhile to be sure.
-- Jerry gesbbb@yahoo.com
|::::======= |::::======= |=========== |=========== |
I'll be comfortable on the couch. Famous last words.
Lenny Bruce
participants (2)
-
Edgar Fuß
-
Jerry