Using 'USR1' signal in newsyslog.conf file causes error

2009-10-24 Thread carmel_ny
Dovecot has a site with information regarding how to rotate it's
log-file. http://wiki.dovecot.org/Logging Since I do not have
logrotate on my FreeBSD-7.2 system, I thought I could use newsyslog
to accomplish the action. I seem to have run into a problem however.

newsyslog: illegal signal number in config file:
/var/log/dovecot.log root:wheel   0666  1  *   $M1D0  CJ  
/var/run/dovecot/master.pid SIGUSR1

I then changed SIGUSR1 TO USR1'; however, the problem continues.

Can someone tell me what I am doing wrong?

-- 
Carmel
carmel...@hotmail.com

|===
|===
|===
|===
|

Seattle is so wet that people protect their property with watch-ducks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Using 'USR1' signal in newsyslog.conf file causes error

2009-10-24 Thread Trond Endrestøl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, 24 Oct 2009 15:26-0400, carmel_ny wrote:

 Dovecot has a site with information regarding how to rotate it's
 log-file. http://wiki.dovecot.org/Logging Since I do not have
 logrotate on my FreeBSD-7.2 system, I thought I could use newsyslog
 to accomplish the action. I seem to have run into a problem however.
 
 newsyslog: illegal signal number in config file:
 /var/log/dovecot.log root:wheel   0666  1  *   $M1D0  CJ  
 /var/run/dovecot/master.pid SIGUSR1
 
 I then changed SIGUSR1 TO USR1'; however, the problem continues.
 
 Can someone tell me what I am doing wrong?

You're supposed to use a number.  Look in /usr/include/sys/signal.h, 
you'll find SIGUSR1 listed as signal no. 30. Use 30 as opposed to 
SIGUSR or USR1.


Trond.

- -- 
- --
Trond Endrestøl  | trond.endres...@fagskolen.gjovik.no
ACM, NAS, NUUG, SAGE, USENIX |FreeBSD 7.2-STABLE  Alpine 2.00

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkrjVrUACgkQbYWZalUoEltaBwCdEs6UdDe7ZF+YwrcHhC7MWsIL
yY0An10HF2z4TeQIdoTyt15P3hPM2ITl
=CNF+
-END PGP SIGNATURE-___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Using 'USR1' signal in newsyslog.conf file causes error

2009-10-24 Thread carmel_ny
On Sat, 24 Oct 2009 21:34:08 +0200 (CEST)
Trond Endrestøl trond.endres...@fagskolen.gjovik.no replied:

On Sat, 24 Oct 2009 15:26-0400, carmel_ny wrote:

 Dovecot has a site with information regarding how to rotate it's
 log-file. http://wiki.dovecot.org/Logging Since I do not have
 logrotate on my FreeBSD-7.2 system, I thought I could use newsyslog
 to accomplish the action. I seem to have run into a problem however.
 
 newsyslog: illegal signal number in config file:
 /var/log/dovecot.log root:wheel   0666  1  *   $M1D0
 CJ  /var/run/dovecot/master.pid SIGUSR1
 
 I then changed SIGUSR1 TO USR1'; however, the problem continues.
 
 Can someone tell me what I am doing wrong?

You're supposed to use a number.  Look in /usr/include/sys/signal.h, 
you'll find SIGUSR1 listed as signal no. 30. Use 30 as opposed to 
SIGUSR or USR1.

Trond

I did a 'kill -l' right after I posted that message. I discovered the
numerical equivalency then.

-- 
Carmel
carmel...@hotmail.com

|===
|===
|===
|===
|

Fantasies are free.
NO!! NO!! It's the thought police
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org