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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9340 invoked from network); 12 Sep 2020 06:43:13 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 12 Sep 2020 06:43:13 -0000 Received: (qmail 23007 invoked by uid 89); 12 Sep 2020 06:43:31 -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 23000 invoked from network); 12 Sep 2020 06:43:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scolby.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=Rzi+RuF1HFkc8ZeEBzqiMqlT1ynP23I 6Xp1hKsmqBWo=; b=m1ae8Q+g7ZvGGxpKya1BHaNCcgPSVtothn9dnGjTVRmeC3p pfNiZD66+sCmwFAeeh+CzWHP2dAfAGgqU5T8i6NUUvtDO9hMTB9rLqIQGb7apysg PfM9z8OcrF35/Q5RnDCSUtpKWYViQsjB+J2rY1c0A1P28QtHkz+rKOPuGlC9LvHi z5l6vx3yLyXL/0t4gowjRXRy3CzvHdRN+T2NlM39jeahm/vimWD2JWQFgLZlnzX4 2QKUa7282lYJ6DVLIlMhOmBHlX/sQ26tuPkvnH2UHlt7JpAOssSVgHDZ30Gf1el0 JPbr/tl4VSyvX6G0AdH143Bh6trdtOY3iIw/nsQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Rzi+Ru F1HFkc8ZeEBzqiMqlT1ynP23I6Xp1hKsmqBWo=; b=nYuWWZI1xNQAps8VQgcRvQ BnjQ9RRd5+m3ZPxwqR56kCV/WZ8j5yj5gEzqxasW9vkXSgeJ83nC32Slr/7BI/NF z+tNyYkIBO4hpKd3hlqetmsQFf33oyUCvJ5Fd/+TO9xYkIeS5hyUCCnRzbNvCRHJ 5ZNGe/5Lz+wLGH37Av9smeak7fl7mZOF5pvJWjC8XoiJR+/PwxsdH8HwlLG98rLm TvGudw9toNiEndQW5SdKtfMk4HgPNCoTpmWSALnB+EVCM6LOsFt0lkj2cBBAZ28c W8+5MF1cG6wezcXyrttz2nKT2JsX77e/GRw5m4Um5WtnTNo9780JfpeAm0eMAtqQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudeitddguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth dtredtreertdenucfhrhhomhepfdfutghothhtucevohhlsgihfdcuoehstghothhtsehs tgholhgshidrtghomheqnecuggftrfgrthhtvghrnheptddvtefhudffgefhvdfggfetje ejiefghfevhefgteeffefgkeekgeelfeehjeeinecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepshgtohhtthesshgtohhlsgihrdgtohhm X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-259-g88fbbfa-fm-20200903.003-g88fbbfa3 Mime-Version: 1.0 Message-Id: <0fa6bc96-3e7a-4622-bcf7-4a7d66d3c6be@www.fastmail.com> In-Reply-To: References: <20200908184318.GB15636@cathexis.xen.prgmr.com> Date: Sat, 12 Sep 2020 02:42:40 -0400 From: "Scott Colby" To: supervision@list.skarnet.org Subject: Re: Understanding the syslogd-linux Service Script Content-Type: text/plain Dear Colin and Laurent, Thank you for the thorough explanations it took me a minute with a pen and paper to work out the fd movements, but it makes sense to me now. My particular environment uses glibc, so the old version of the example seems to work well. I omit the syslog service's log directory and the log lines appear on my container's stdout, which was my goal. I tried out Colin's SOCK_DGRAM version, but this was unsuccessful; I received this line at a very high rate (20k lines in just a second or two) on my stdout: s6-ipcserverd: warning: unable to accept: Operation not supported The s6-ipcserverd docs specifically state that it expects a bound and listening SOCK_STREAM socket, and this led me to the `ipc_accept()` call that the program makes. Out of curiosity, is there another s6-family program that handles SOCK_DGRAM sockets? Otherwise, I'll look in to socklog as Laurent suggested. Thanks, Scott