From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2462 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Colin Booth Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6 problems logging Date: Sun, 27 Jan 2019 05:20:00 +0000 Message-ID: <20190127052000.4skktmkfzmit6ykl@cathexis.xen.prgmr.com> References: <20190126221517.70ea00b8@zonker.seanm.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146992"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20170113 (1.7.2) To: supervision@list.skarnet.org Original-X-From: supervision-return-2052-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Jan 27 06:20:06 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 1gncrV-000c8y-U8 for gcsg-supervision@m.gmane.org; Sun, 27 Jan 2019 06:20:06 +0100 Original-Received: (qmail 29291 invoked by uid 89); 27 Jan 2019 05:20:29 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29284 invoked from network); 27 Jan 2019 05:20:29 -0000 Content-Disposition: inline In-Reply-To: <20190126221517.70ea00b8@zonker.seanm.ca> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2462 Archived-At: On Sat, Jan 26, 2019 at 10:15:17PM -0500, Sean MacLennan wrote: > I have a service called doorknob that I want to log the output of. Here > is the run file: > > #!/command/execlineb -P > /usr/sbin/doorknob -fs > > The -f keeps doorknob in the foreground and the -s sends all messages > to stdout. > > The log/run file is: > > #!/command/execlineb -P > s6-log -b n20 s1000000 t . > > My understanding is that the stdout should go to s6-log and be put in > log/current. But nothing seems to be logged. > > Cheers, > Sean > > https://github.com/smaclennan/doorknob Everything looks fine from over here. Does running doorknob with -fs from the terminal do what you expect? Also, what does `s6-svstat PATH_TO_DOORKNOB_SVCDIR' and `s6-svstat PATH_TO_DOORKNOB_SVCDIR/log' tell you? Also, does the target dir for s6-log have the files "current" (apparently not), "lock", and "state"? Those final two files are created by s6-log automatically and should at least indicate that it's starting up fine. Cheers! -Colin -- Colin Booth