[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: savelog can lose data

> deleted, log.<cycle-1>.  Daemons are expected to reopen their log
> files once a day or so.

More realistically (and this is what the redhat logrotate does) you do
the roll, and then *cause* the daemon to reopen the log (by HUP'ing
the daemon or whatever.)  Thus, /etc/cron.daily/sysklogd does the log
rolling and then runs "/etc/init.d/sysklogd reload", for example.
Logrotate fragments are similar but specific to rotation, so you have
handy shell script fragments available and generic defaults.

Reply to: