From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2690 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6-log can create current with 640? Date: Wed, 23 Oct 2019 23:58:58 +0000 Message-ID: References: <6f3a28f8-798c-9a55-e79b-2e54b37edf2e@heuristicsystems.com.au> <01b8c564-887f-16cf-405c-8bcfc52c02b1@heuristicsystems.com.au> Reply-To: "Laurent Bercot" Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="72599"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: eM_Client/7.2.36908.0 To: "Dewayne Geraghty" , supervision@list.skarnet.org Original-X-From: supervision-return-2279-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Oct 24 01:59:00 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iNQWq-000Idq-8g for gcsg-supervision@m.gmane.org; Thu, 24 Oct 2019 01:59:00 +0200 Original-Received: (qmail 12730 invoked by uid 89); 23 Oct 2019 23:59:25 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 12723 invoked from network); 23 Oct 2019 23:59:25 -0000 In-Reply-To: <01b8c564-887f-16cf-405c-8bcfc52c02b1@heuristicsystems.com.au> X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrledtgddvhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfrhgfgggtgfesthhqredttderjeenucfhrhhomhepfdfnrghurhgvnhhtuceuvghrtghothdfuceoshhkrgdqshhuphgvrhhvihhsihhonhesshhkrghrnhgvthdrohhrgheqnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtnecuvehluhhsthgvrhfuihiivgeptd Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2690 Archived-At: >My initial attempt > >#!/usr/local/bin/execlineb -P >s6-setuidgid uucp >redirfd -r 0 /services/ntp/fifo >umask 037 >/usr/local/bin/s6-log -b n14 r7000 s100000 S3000000 !"/usr/bin/xz -7q" >/var/log/ntpd Hi Dewayne, - Is there a reason why you're using a manually created fifo instead of the built-in logging facility offered by s6-svscan? You could tell ntpd to log to /dev/stdout, and have the logger in a ntpd/log service directory, and your logs would automatically be available on your logger's stdin. - About umask: that's very strange. Can you strace, or ktrace, or whatever tool gives you a list of system calls, the script? It will show exactly what's going on. -- Laurent