Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2010 16:06:40 +0200
From:      Marin Atanasov <dnaeon@gmail.com>
To:        Damian Gerow <dgerow@afflictions.org>
Cc:        vince@blue-box.net, freebsd-ports@freebsd.org
Subject:   Re: sysutils/syslog-ng3 processes
Message-ID:  <717f7a3e1002270606v2e931e07ja072434bb1969f6f@mail.gmail.com>
In-Reply-To: <20100226165636.GD21540@plebeian.afflictions.org>
References:  <717f7a3e1002260651k1ce06986u4332c637b94d07ce@mail.gmail.com> <20100226165636.GD21540@plebeian.afflictions.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 26, 2010 at 6:56 PM, Damian Gerow <dgerow@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?717f7a3e1002270606v2e931e07ja072434bb1969f6f>