syslog, logrotate - can logrotate run without reloading syslog
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > syslog, logrotate - can logrotate run without reloading syslog




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    syslog, logrotate - can logrotate run without reloading syslog  
pthread


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-05 10: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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:04 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register