Date: Sat, 17 Mar 2007 20:51:28 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Jos? Pablo Fern?ndez <pablo.fernandez@rs.com.ar> Cc: freebsd-questions@freebsd.org Subject: Re: Logrotating and running a command Message-ID: <20070317185128.GB47438@kobe.laptop> In-Reply-To: <200703161922.12086.pablo.fernandez@rs.com.ar> References: <200703161922.12086.pablo.fernandez@rs.com.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-03-16 19:22, Jos? Pablo Fern?ndez <pablo.fernandez@rs.com.ar> wrote: > Hello, > I need to rotate some logs, but instead of getting the PID out of a > file and sending a SIGHUP to that process, like newsyslog does, I need > to run a command. > Is that possible with newsyslog? how should I do it? Not directly, but you can easily hack around this by running a daemon which blocks waiting for a signal and runs the command when newsyslog signals your daemon ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070317185128.GB47438>