<div>Aplogies for creating soem confusion there by way of my pasting the o/p. </div>
<div>yes.. i just verifed and this now makes sense. But, I have noted something differnet again.</div>
<div>The issue of 2 daemons is not reported during reboot of a system. Post reboot , I only have one single syslog daemon running.</div>
<div>And the PID I have verified , it is different from the previous ones which means this is a new daemon.</div>
<div>I have bundled the start adn stop commands into a script which i normally use to start or stop and to which i have created links to the sysltem start up and shutdown scripts on HPUX so, he same is used there as well.</div>
<div>Can someone help me understand this varied behaviour on restart.</div>
<div> </div>
<div>Thanks in Advance.</div>
<div>Rakesh<br><br></div>
<div class="gmail_quote">On Wed, Mar 9, 2011 at 4:22 PM, Sandor Geller <span dir="ltr"><<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Correct, from version 3 syslog-ng has a supervisor process which could<br>get disabled using the --process-mode=background option.<br>
<br>To the original poster: please don't mix the output of multiple ps<br>commands, it just makes reading your mail more difficult. In your case<br>PID 3634 is the syslog-ng supervisor process, PID 3635 is the actual<br>
syslog-ng daemon.<br><br>Regards,<br><font color="#888888"><br>Sandor<br></font>
<div>
<div></div>
<div class="h5"><br>On Wed, Mar 9, 2011 at 8:50 AM, Fekete Robert <<a href="mailto:frobert@balabit.hu">frobert@balabit.hu</a>> wrote:<br>> Hi, around 3.0.x IIRC, syslog-ng gained a supervisor process that automatically<br>
> restarts syslog-ng if it crashes.<br>><br>> I think that's why you see now two processes. You can check it by killing the<br>> child process - it should respawn, or killing the parent process (should not<br>
> respawn).<br>><br>> Regards,<br>><br>> Robert<br>><br>> On 03/09/2011 07:47 AM, Rakesh Rajasekharan wrote:<br>><br>>> Hi,<br>>> I have compiled syslog-ng 3.0.7 on an HP-UX machine. Now, when I try to restart,<br>
>> it shows 2 daemons.<br>>> # /sbin/init.d/syslog_ng restart<br>>> syslog-ng service starting.<br>>> # ps -ef|grep -i syslog<br>>> root 3635 3634 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f<br>
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid<br>>> root 3640# /sbin/init.d/syslog_ng restart<br>>> syslog-ng service starting.<br>>> # ps -ef|grep -i syslog<br>>> *root 3635 3634 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f<br>
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid<br>>> root 3640 2701 0 09:18:01 pts/0 0:00 grep -i syslog<br>>> root 3634 1 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f<br>
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid<br>>> 2701 0 09:18:01 pts/0 0:00 grep -i syslog<br>>> root 3634 1 0 09:17:58 ? 0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f<br>
>> /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid<br>>> *<br>>> **<br>>> Is this soemthing expected . Please confirm.<br>>> Thanks,<br>>> Rakesh<br>>><br>>><br>
>><br>>> ______________________________________________________________________________<br>>> Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
>> Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>>> FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
>><br>><br>> ______________________________________________________________________________<br>> Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
> Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>> FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
><br>><br>______________________________________________________________________________<br>Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br></div></div></blockquote></div><br>