From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2464 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sean MacLennan Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6 problems logging Date: Sun, 27 Jan 2019 11:47:51 -0500 Message-ID: <20190127114751.169d2a15@zonker.seanm.ca> References: <20190126221517.70ea00b8@zonker.seanm.ca> <20190127052000.4skktmkfzmit6ykl@cathexis.xen.prgmr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="167889"; mail-complaints-to="usenet@blaine.gmane.org" Cc: supervision@list.skarnet.org To: Colin Booth Original-X-From: supervision-return-2054-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Jan 27 17:47:56 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 1gnnbA-000hWp-4l for gcsg-supervision@m.gmane.org; Sun, 27 Jan 2019 17:47:56 +0100 Original-Received: (qmail 5337 invoked by uid 89); 27 Jan 2019 16:48:21 -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 5330 invoked from network); 27 Jan 2019 16:48:21 -0000 X-Session-Marker: 7365616E6D407365616E6D2E6361 X-HE-Tag: metal93_61fb2edebbb0e X-Filterd-Recvd-Size: 2139 In-Reply-To: <20190127052000.4skktmkfzmit6ykl@cathexis.xen.prgmr.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-slackware-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2464 Archived-At: On Sun, 27 Jan 2019 05:20:00 +0000 Colin Booth wrote: > Everything looks fine from over here. Does running doorknob with -fs > from the terminal do what you expect? Yup, I get a log message to the console when I send an email. > Also, what does > `s6-svstat PATH_TO_DOORKNOB_SVCDIR' and > `s6-svstat PATH_TO_DOORKNOB_SVCDIR/log' > tell you? /service/doorknob# /command/s6-svstat . up (pid 948) 47861 seconds /service/doorknob# /command/s6-svstat log up (pid 847) 75815 seconds Log has been up longer because I restarted doorknob with an s6-svc down/up. Not sure if this is kosher with logging. Is there a recommended way to start/stop services that have logging? > 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. /service/doorknob# ls log current event lock run state supervise So it does have all the files/directories but current is empty even though there should be some log entries. I do use s6-log in one other service and it works. In the service/s6-svscan-log I have: #!/command/execlineb -P cat ./fifo And the same log/run as doorknob. Cheers, Sean