[rsyslog] rsyslog as non-root user
david at lang.hm
david at lang.hm
Fri Feb 3 10:42:32 CET 2012
without auto backgrounding, what happens when you run it manually?
On Fri, 3 Feb 2012, Michael Maymann wrote:
> Rainer: thanks for your reply.
> Tried without auto-backgrounding, here is the proccesses I see:
> root 14814 14131 0 10:43 pts/0 00:00:00 /bin/sh /sbin/service
> rsyslog start
> root 14819 14814 0 10:43 pts/0 00:00:00 /bin/bash
> /etc/init.d/rsyslog start
> root 14822 14819 0 10:43 pts/0 00:00:00 /bin/bash -c ulimit -S -c 0
>> /dev/null 2>&1 ; /usr/sbin/rsyslogd -c 6 -n
> <PrivDropToUser> 14823 14822 0 10:43 pts/0 00:00:00 /usr/sbin/rsyslogd
> -c 6 -n
> Now it doesn't seem to timeout and kill the motherproccess...:-) !
> Only thing is it doesn't return after:
> # service rsyslog start
> I have tried adding "&" to /etc/sysconfig/rsyslog:
> SYSLOGD_OPTIONS="-c 6 -n &"
> but again this kill the motherproccess... and my guess is the root-owned
> motherproccess should continue to be there - right ?
> Any idea how to implement this properly ?
> Thanks in advance :-) !
> 2012/2/3 Rainer Gerhards <rgerhards at hq.adiscon.com>
>>>> I have attached debug info both when PrivDropTo is enabled and
>>>> Only difference I can see is the 5 minutes it takes for the
>>>> PrivDropTo_enabled run to timeout (motherproccess dies and
>>>> thereby gets owned by init)...
>>> Ah, it looks like you use auto-backgrounding (which is the default due
>>> historical reasons). You can disable that via -n. I don't know if the
>>> script expects auto-backgrounding or not...
>> I should add: if auto-backgrounding is used, the parent process is just a
>> shim to start the actual instance (the child). It then waits some time on
>> child until it is sure it has started (I haven't visited that code for many
>> years...). So it is expected that the parent terminates after a while (and
>> think-but do not know right now- that this may take some minutes).
>> Suggest: try without auto-backgrouning so that we know if the problem is
>> related to that Feature.
>> rsyslog mailing list
> rsyslog mailing list
More information about the rsyslog