From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2478 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6 bites noob Date: Fri, 01 Feb 2019 04:18:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="49620"; mail-complaints-to="usenet@blaine.gmane.org" Cc: supervision@list.skarnet.org To: Laurent Bercot Original-X-From: supervision-return-2068-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Feb 01 05:20:09 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 1gpQJF-000Cod-0M for gcsg-supervision@m.gmane.org; Fri, 01 Feb 2019 05:20:09 +0100 Original-Received: (qmail 29327 invoked by uid 89); 1 Feb 2019 04:20:31 -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 29314 invoked from network); 1 Feb 2019 04:20:30 -0000 X-Originating-IP: 174.18.47.127 In-reply-to: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2478 Archived-At: Thanks for the fix. Longrun works now, though oneshot still fails, this time with a different message: s6-sudoc: fatal: connect to the s6-sudod server - check that you have appropriate permissions. I guess that's related to my running all this (including svscan) as non-root. s6rc-oneshot-runner is running now, though. Should I run it as root? But then you'll be able to erase a lot more than just the contents of my home dir. ;-) I do prefer that my software recognize that I'm an idiot, and refuse to do dubious things unless I specify some --force option. I've been saved countless times by programs designed with users' mental frailty in mind, and bitten countless times by the opposite. The doc for rc says its diff's view diverges from s6's view only when the service fails permanently. I suggest adding there that downing the service using svc instead of rc qualifies as a permanent failure from rc's point of view. I guess this also means that if rc is used, then svc isn't supposed to be part of the normal user interface. In the docs, I see no way to ask svc whether a service is up, or ask svscanctl which services are up. But obviously rc must be able to ask, in order to do the diff. I also see no straightforward way to ask rc whether a particular service is up, other than s6-rc -a list | grep "^servicename$" If inotify were portable, would you still consider svscanctl -a to be the best design, or would you omit the -a option and auto-rescan when the scan directory changed?