sysutils/syslog-ng3 processes

Marin Atanasov dnaeon at gmail.com
Sat Feb 27 14:06:47 UTC 2010


On Fri, Feb 26, 2010 at 6:56 PM, Damian Gerow <dgerow at afflictions.org>wrote:

> Marin Atanasov wrote:
> : I've noticed that when I start syslog-ng3 daemon it starts two processes.
> I
> : haven't seen this when running syslog-ng.
> :
> : Here are the processes:
> :
> : root     554  0.0  0.1  5320  2092  ??  I     4:46PM   0:00.00
> : /usr/local/sbin/syslog-ng -p /var/run/syslog.pid
> : root     555  0.0  0.1  5320  2456  ??  Ss    4:46PM   0:00.02
> : /usr/local/sbin/syslog-ng -p /var/run/syslog.pid
> :
> : I was wondering why it actually start two (identical?) processes? Anyone
> has
> : an idea? Is this normal?
>
> What does "ps -j | grep syslog-ng" show you?  It's possible 554 is spawning
> 555.
>

Hi,

You were right - syslog-ng3 is spawing the second process. Here's the
output, after I've restarted syslog-ng3. The PIDs are 1013 and 1014, and
1013 is spawning 1014.

# ps axuw | sed -n -e '1p' -e '/syslog/p'
USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
root    1013  0.0  0.1  5320  2280  ??  I     5:26PM   0:00.00
/usr/local/sbin/syslog-ng -p /var/run/syslog-ng.pid
root    1014  0.0  0.1  5320  2588  ??  Ss    5:26PM   0:06.20
/usr/local/sbin/syslog-ng -p /var/run/syslog-ng.pid
# ps jaxuw | sed -n -e '1p' -e '/1014/p'
USER     PID  PPID  PGID   SID JOBC STAT  TT       TIME COMMAND
%CPU %MEM   VSZ   RSS STARTED
root    1014  1013  1014  1014    0 Ss    ??    0:06.20 /usr/local/sbin/
0.0  0.1  5320  2588  5:26PM

I've CCed the maintainer of the port, so if he's available he could explain
better.

Regards,
Marin

-- 
Marin Atanasov Nikolov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org


More information about the freebsd-ports mailing list