25 May
2011
25 May
'11
11:47 p.m.
"Henry Xu" <xkb.surfing@gmail.com> writes:
Hi All, Does syslog-ng have a running script that check the syslog-ng running status? If it crashed or stopped running,this script can make sure to start a new syslog-ng process. This morning,the syslog-ng on my server crashed,and somehow resulted in the server halt. Thanks.
"syslog-ng-ctl stats" is the closest thing. Apart from that, you can save the PID of syslog-ng to a pidfile, and verify that the PID is still present, and if it belongs to syslog-ng (syslog-ng will by default, save a pidfile, FYI). -- |8]