Mark Post wrote:
On 1/7/2009 at  5:44 AM, John Summerfield <[email protected]>
wrote:
-snip-
logrotate expects you're logging sensibly. John is not.

"sensibly" means the program can close and reopen the logfile on demand.

That is not a requirement for logrotate.  If nothing else the "copytruncate" 
parameter will do what is desired.  I had to wind up using that for ntpd, since it never 
closes its log file, and any signals ntpd gets result in it shutting down.



I just checked the man page, it seems "copytruncate" does what Larry
suggested, and with the same warning about loss of data.




--

Cheers
John

-- spambait
[email protected]  [email protected]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to