[rsyslog] Privilege drop makes stopping it (via Ubuntu upstart) to hang

Michael Biebl mbiebl at gmail.com
Fri Jan 11 06:54:01 CET 2013


2013/1/10 Rainer Gerhards <rgerhards at hq.adiscon.com>:
>> So you need some kind of communication channgel between the parent and
>> the child process? You could use a unix domain socket [1] for this.
>
> Yeah, I was thinking of a smaller change. It will probably sufficient if I send sigterm before dropping privs, but I need to check things a bit

Maybe you already know [1], but it contains some general, useful
information regarding how to write (sysv) daemons.
In Step 14), Lennart is suggesting using an unnamed pipe.
Hope this is useful.

Cheers,
Michael

[1] http://0pointer.de/public/systemd-man/daemon.html
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the rsyslog mailing list