Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 1999 15:31:01 -0400
From:      Christopher Michaels <ChrisMic@clientlogic.com>
To:        'Igor Roshchin' <igor@physics.uiuc.edu>
Cc:        "FreeBSD Questions (E-mail)" <questions@FreeBSD.org>
Subject:   RE: newsyslog - how to set the rotation moment ?
Message-ID:  <6C37EE640B78D2118D2F00A0C90FCB44011059ED@site2s1>

next in thread | raw e-mail | index | archive | help
The only way I could think of, to do that would be to only run newsyslog on
certain days, because it is called from cron periodically.

But then of course, all your other logs would suffer from this, and only be
processed on certain days.

OR and even better option.

Make a secondary newsyslog.conf file, call it whatever you like.  Put all of
your day specific entries in this additional newsyslog.conf file.  Then in
your /etc/crontab put a 2nd entry to call up newsyslog -f
/path/to/second/config.file.  This way you can control what day those
particular logs are turned.

It's the only thing I can think of.

-Chris

> -----Original Message-----
> From:	Igor Roshchin [SMTP:igor@physics.uiuc.edu]
> Sent:	Friday, June 25, 1999 3:10 PM
> To:	questions@freebsd.org
> Subject:	newsyslog - how to set the rotation moment ?
> 
> 
> Hello!
> 
> I looked in the archives of the mailing lists,
> but could not find the relevant information, even though
> I remember seeing some discussions on that at the time when 
> the accounting was broken by the newsyslog.
> 
> THe question is:
> Is there any way to set the "rotation point" moment for the newsyslog,
> i.e. not just the periodicity, but also the day of the week
> (say, on Saturday... or on the 1st of month - exactly like in crontab) ?
> 
> I am currently asking this question in regards to 2.2.*,
> but am interested whether it is any different in 3.x-STABLE.
> 
> Thanks,
> 
> Igor
> 
> PS. Please CC: your response to me.
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C37EE640B78D2118D2F00A0C90FCB44011059ED>