syslog, logrotate - can logrotate run without reloading syslog
From: pthread (prymus_at_interia.pl)
Date: 09/23/05
- Next message: ebrahimbandookwala_at_gmail.com: "cant figure out where the [segmentation] fault lies ??"
- Previous message: Maxim Yegorushkin: "Re: Question on Unicode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Sep 2005 14:26:43 -0700
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
- Next message: ebrahimbandookwala_at_gmail.com: "cant figure out where the [segmentation] fault lies ??"
- Previous message: Maxim Yegorushkin: "Re: Question on Unicode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|