Date: Fri, 25 Jun 1999 17:03:58 -0500 (CDT) From: Igor Roshchin <igor@physics.uiuc.edu> To: questions@freebsd.org Subject: RE: newsyslog - how to set the rotation moment ? (fwd) Message-ID: <199906252203.RAA05542@alecto.physics.uiuc.edu>
next in thread | raw e-mail | index | archive | help
I just found that this issue was addressed in the 4.0-current branch, and ported back to the 3.* branch, but didn't make it to the 2.2-STABLE. 1.21.2.1 Thu Feb 25 18:38:33 1999 UTC by wollman CVS Tags: RELENG_3_2_PAO_BP, RELENG_3_2_0_RELEASE, RELENG_3_2_PAO; Branch: RELENG_3 Diffs to 1.21 ; Diffs to 1.22 Merge from 4.0: teach newsyslog how to do something at a specific time of day. Thanks for all responses. Igor ----- Forwarded message from Christopher Michaels ----- 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 ----- End of forwarded message from Christopher Michaels ----- 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?199906252203.RAA05542>