syslog-ng PID not getting set correctly
We are running the sunfreeware 3.0.1 version of syslog-ng. I'm noticing that the PID is not being set correctly. I saw a bug report but it's not the same as what I'm seeing: https://bugzilla.balabit.com/show_bug.cgi?id=23 Here is what I am experiencing: # ps -ef | grep syslog root 1662 1 0 07:42:05 ? 0:00 /usr/local/sbin/syslog-ng root 1663 1662 0 07:42:05 ? 0:00 /usr/local/sbin/syslog-ng # cat /var/run/syslog-ng.pid 1663 Shouldn't the PID be 1662? I've also seen inconsistencies when I use the svcadm commands to disable/enable/refresh the syslog-ng service. Many times it won't stop the service properly and the /var/run/syslog-ng.pid file remains in /var/run. When I try to restart syslog-ng, it won't restart until I run an svcadm disable syslog-ng, remove the /var/run/syslog-ng.pid file, then run svcadm enable syslog-ng. Thanks In Advance for any help.
Sorry, the bug id I referenced was incorrect... https://bugzilla.balabit.com/show_bug.cgi?id=24 However, it's still not the same issue we are seeing.. :) From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Ngim, Hyrum CTR ADCF/Arrowpoint Sent: Thursday, April 30, 2009 7:52 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] syslog-ng PID not getting set correctly We are running the sunfreeware 3.0.1 version of syslog-ng. I'm noticing that the PID is not being set correctly. I saw a bug report but it's not the same as what I'm seeing: https://bugzilla.balabit.com/show_bug.cgi?id=23 Here is what I am experiencing: # ps -ef | grep syslog root 1662 1 0 07:42:05 ? 0:00 /usr/local/sbin/syslog-ng root 1663 1662 0 07:42:05 ? 0:00 /usr/local/sbin/syslog-ng # cat /var/run/syslog-ng.pid 1663 Shouldn't the PID be 1662? I've also seen inconsistencies when I use the svcadm commands to disable/enable/refresh the syslog-ng service. Many times it won't stop the service properly and the /var/run/syslog-ng.pid file remains in /var/run. When I try to restart syslog-ng, it won't restart until I run an svcadm disable syslog-ng, remove the /var/run/syslog-ng.pid file, then run svcadm enable syslog-ng. Thanks In Advance for any help.
On Thu, 2009-04-30 at 07:51 -0700, Ngim, Hyrum CTR ADCF/Arrowpoint wrote:
We are running the sunfreeware 3.0.1 version of syslog-ng.
I'm noticing that the PID is not being set correctly. I saw a bug report but it's not the same as what I'm seeing:
https://bugzilla.balabit.com/show_bug.cgi?id=23
Here is what I am experiencing:
# ps -ef | grep syslog
root 1662 1 0 07:42:05 ? 0:00 /usr/local/sbin/syslog-ng
root 1663 1662 0 07:42:05 ? 0:00 /usr/local/sbin/syslog-ng
# cat /var/run/syslog-ng.pid
1663
Shouldn't the PID be 1662?
No. syslog-ng 3.0 uses two processes when starting up: 1) supervisor process: that does nothing but checks for its child for abnormal termination 2) child process which performs the actual work So 1663 is correct, that needs to be HUPed in case files need to be rotated.
I've also seen inconsistencies when I use the svcadm commands to disable/enable/refresh the syslog-ng service. Many times it won't stop the service properly and the /var/run/syslog-ng.pid file remains in /var/run. When I try to restart syslog-ng, it won't restart until I run an svcadm disable syslog-ng, remove the /var/run/syslog-ng.pid file, then run svcadm enable syslog-ng.
Do you run a binary package of BalaBit, or you compiled it yourself? -- Bazsi
participants (3)
-
Balazs Scheidler
-
Ngim, Hyrum CTR ADCF/Arrowpoint
-
okapareeya@hotmail.com