Unix Programming - syslog, logrotate - can logrotate run without reloading syslog

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2005 > syslog, logrotate - can logrotate run without reloading syslog





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author syslog, logrotate - can logrotate run without reloading syslog
pthread

2005-09-23, 5:55 pm

Hi,

I'm writing an app which logs two times per second during almost all
day. I have to place the logs which are generated in the archive so I
use syslog & logrotate lunching from cron. I have noticed that when the
logrotate is starting its job it makes my app unable to write (syslog)
any line. Logrotate is creating a new file and then syslog cannot write
anything to this file. If I reload the syslog daemon I can use
syslog(LOG_,MSG) again.

I have 2 questions:
1) How can I catch the info that logrotate has started its work (I have
to stop thread in my app when logrotate is working)
2) How to notice that the syslog has written to the log successfully

Any ideas about how to manage such often logging will be appreciated

Thanks in advance
Peter

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com