Re: Understanding the syslogd-linux Service Script

From: Colin Booth <colin_at_heliocat.net>
Date: Tue, 8 Sep 2020 18:43:18 +0000

On Tue, Sep 08, 2020 at 12:53:37PM -0400, Scott Colby wrote:
> # Listens on /dev/log, this makes sense to me
> s6-ipcserver -U -1 -- /dev/log
>
One thing that I forgot to mention here is that depending on the age of
the libc this might not work properly as written. Newer libc's use
datagram connections for syslog and because of that you need to
hand-write the entire s6-ipcserver chain (since the s6-ipcserver
entrypoint doesn't currently support passing the SOCK_DGRAM option to
s6-ipcserver-socketbinder.

If you need to write it by hand, you should change that line to:
s6-ipcserver-socetbinder -m -b0 /dev/log
s6-applyuidgid -U -z
s6-ipcserverd -1

then the rest of the program (the fdmove and ucspilogd commands).

-- 
Colin Booth
Received on Tue Sep 08 2020 - 18:43:18 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC