From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12657 invoked from network); 8 Sep 2020 18:43:22 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 8 Sep 2020 18:43:22 -0000 Received: (qmail 2161 invoked by uid 89); 8 Sep 2020 18:43:46 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 2151 invoked from network); 8 Sep 2020 18:43:45 -0000 Date: Tue, 8 Sep 2020 18:43:18 +0000 From: Colin Booth To: Scott Colby Cc: supervision@list.skarnet.org Subject: Re: Understanding the syslogd-linux Service Script Message-ID: <20200908184318.GB15636@cathexis.xen.prgmr.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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