Bruce Guenter writes:
> On Mon, Feb 08, 1999 at 01:26:26PM -0000, Russell Nelson wrote:
> > > What would be nice is if cyclog had some way of signaling to us
> > > that it had rotated a log, and we could save that away in a
> > > directory.
> >
> > Yes, wouldn't it be nice if cyclog had another parameter, like this:
> >
> > cyclog: usage: cyclog [ -ssize ] [ -nnum ] [ -mmargin ] dir program
> >
> > where ``program'' gets called with an additional argument which is the
> > name of the file cyclog has just ceased writing to.
>
> It does if you add the patch I wrote ages ago for it :-) See:
> http://www.qcc.sk.ca/~bguenter/distrib/daemontools/cyclog-command.patch
Actually, the more I think about it, the more I realize that cyclog
does too much. Cyclog should work like this:
cyclog [ -ssize ] [ -mmargin ] dir program
"program" should be responsible for any files starting with an '@'
that have permission 0444. One such program might be "rmlog". It
would have these parameters:
rmlog [ -nnum ] dir
--
-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice | that freedom is the
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | cause of world peace.