From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2560e24871751973 X-Google-Attributes: gidfee84,public From: "Richard Beebe II" Subject: Re: syslog.dated- changing log period? Date: 1997/12/19 Message-ID: #1/1 X-Deja-AN: 308666889 Content-Transfer-Encoding: 7bit References: <882447391.7821.0.nnrp-03.9e982017@news.demon.co.uk> <34993FE7.CB8606D5@iisc.com> Content-Type: text/plain; charset="us-ascii" Organization: ITS-Med Yale University School of Medicine Mime-Version: 1.0 Reply-To: "Richard Beebe II" Newsgroups: comp.unix.osf.osf1 On Thu, 18 Dec 1997 10:23:19 -0500, Charles M Richmond wrote: >Andrew Ireland wrote: >> in the /etc/syslog.conf file, entries with the /var/adm/syslog.dated/> file> have new >> log directories and log files created once per day (or when syslogd is >> restarted). >> >> Is there any way to configure syslog to create a log directory which will >> log files >> and create new directories say once per month? > >There are two lines in the /var/spool/cron/crontabs/root entry that >are pertinent to the syslogd operation. > >The following is the line that actually restarts the logging >process. As you can see, I have chosen midnight to start my logs. >If you want to only do this once a month then just change the '*' in >the 3d field to be the day of the month that you wish to start >your logs on. > >0 0 * * * kill -1 `/bin/cat /var/run/syslog.pid` There must be more to it than that. I don't have any such line in any crontab and my syslog restarts every 24-hours from the time of last reboot. I can see that the above could force it to restart at midnight (though there'd be a 'short' log whenever I rebooted), but I don't see how one could get a syslog directory that lasted a month. _____________________________________________________________________ Rick Beebe (203) 785-4566 Network Engineering Manager FAX: (203) 737-4037 ITS-Med Technology Operations Richard.Beebe@yale.edu Yale University School of Medicine 333 Cedar Street, New Haven, CT 06510 _____________________________________________________________________