[syslog-ng] syslog-ng 3.0.7 shows 2 daemons on restart

Sandor Geller Sandor.Geller at morganstanley.com
Wed Mar 9 11:52:29 CET 2011


Hi,

Correct, from version 3 syslog-ng has a supervisor process which could
get disabled using the --process-mode=background option.

To the original poster: please don't mix the output of multiple ps
commands, it just makes reading your mail more difficult. In your case
PID 3634 is the syslog-ng supervisor process, PID 3635 is the actual
syslog-ng daemon.

Regards,

Sandor

On Wed, Mar 9, 2011 at 8:50 AM, Fekete Robert <frobert at balabit.hu> wrote:
> Hi, around 3.0.x IIRC, syslog-ng gained a supervisor process that automatically
> restarts syslog-ng if it crashes.
>
> I think that's why you see now two processes. You can check it by killing the
> child process - it should respawn, or killing the parent process (should not
> respawn).
>
> Regards,
>
> Robert
>
> On 03/09/2011 07:47 AM, Rakesh Rajasekharan wrote:
>
>> Hi,
>> I have compiled syslog-ng 3.0.7 on an HP-UX machine. Now, when I try to restart,
>> it shows 2 daemons.
>> # /sbin/init.d/syslog_ng restart
>> syslog-ng service starting.
>> # ps -ef|grep -i syslog
>> root 3635 3634 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid
>> root 3640# /sbin/init.d/syslog_ng restart
>> syslog-ng service starting.
>> # ps -ef|grep -i syslog
>> *root 3635 3634 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid
>> root 3640 2701 0 09:18:01 pts/0 0:00 grep -i syslog
>> root 3634 1 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid
>>   2701 0 09:18:01 pts/0 0:00 grep -i syslog
>> root 3634 1 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid
>> *
>> **
>> Is this soemthing expected . Please confirm.
>> Thanks,
>> Rakesh
>>
>>
>>
>> ______________________________________________________________________________
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.campin.net/syslog-ng/faq.html
>>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>


More information about the syslog-ng mailing list