Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Richard Beebe II" <richard.beebe@yale.edu>
Subject: Re: syslog.dated- changing log period?
Date: 1997/12/19	[thread overview]
Message-ID: <sgpvadwkhbaigycaedip.pminews@news.yale.edu> (raw)
In-Reply-To: 34993FE7.CB8606D5@iisc.com


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/<log
>> 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
    _____________________________________________________________________






  reply	other threads:[~1997-12-19  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-18  5:00 syslog.dated- changing log period? Andrew Ireland
1997-12-18  5:00 ` Charles M Richmond
1997-12-19  5:00   ` Richard Beebe II [this message]
1997-12-18  5:00 ` Mark Hibberts
1997-12-18  5:00 ` Charles M Richmond
1997-12-19  5:00 ` Andrew Ireland
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox