On Mon, 10 Dec 2012, Keller, Eric wrote:
-----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von David Lang Gesendet: Freitag, 30. November 2012 18:56 An: rsyslog-users Betreff: Re: [rsyslog] [empty syslog] after powerfailWhen starting up, we noticed that the rsyslogd is running despite no lock was created in the /tmp/.rsyslog-lock Another consequence is that our /home/roche/share/log/syslog does not log any of our project traces.this sounds like there is something else that's starting rsyslog, other than the scripts you are showing below. David Lang Hi David, Thank you for your answer, in fact the rsyslog script is also called if a log rotation is necessary, see the /etc/logrotate.conf ---- /etc/logrotate.conf --- create 0640 roche roche compress /home/roche/share/log/syslog { prerotate /etc/init.d/rsyslog stop endscript rotate 8 size=50M missingok ifempty postrotate /etc/init.d/rsyslog start endscript } ---- ! /etc/logrotate.conf --- We could notice (ps aux | grep rsyslog) that the running rsyslog after power fail does not create the /tmp/.lock-rsyslog file despite the call with ps aux| grep rsyslog has exactly the same arguments! I cannot think of another instance starting the rsyslog without using the /etc/init.d/rsyslog script...
you should not have logrotate calling stop and start, it should be doing a kill -HUP of the rsyslog process after it makes a copy of the files.
David Lang
_______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

