Re: logrotate
Hi,
smb0399@osfmail.isc.rit.edu writes:
[ logrotate troubles ]
> logrotate.conf. The problem is that everytime it rotates my syslog files
> (weekly) it screws up syslog by making log to messages.0 etc... basically
> all my normal syslog files with a .0 extension. Anyone have this happen to
> them?
This is "normal" behaviour for syslogd, it is not related to
logrotate. I've had this happen to me under various versions of
Solaris, HP-UX, AIX, and Linux. Try renaming your syslog's output file
by hand and you will encounter the same effect.
I don't really have any idea why this is the case, it's probably a
question of not closed filehandles - maybe some kind soul could
clarify this for all of us :-)
> I have temorarily added a restart to the rotate for syslog to restart
> syslog which solves the problem but it still creates the files.
This is the preferred solution I have seen on enessitally every site
which rotates its syslogs - and under any kind of UNIX-dialect, too.
Personally I think it's a good idea to HUP your daemons after rotating
their log files. I just keeps this a little tidier.
Cheers -- Stephan
--
Stephan Engelke engelke@math.uni-hamburg.de
*** from the Sendmail-FAQ: Question 3.6: deprecated. ***
Reply to: