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 26855 invoked from network); 21 Oct 2020 19:14:50 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2020 19:14:50 -0000 Received: (qmail 1249 invoked by uid 89); 21 Oct 2020 19:15:15 -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 1239 invoked from network); 21 Oct 2020 19:15:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=S4+1CtK9+YLNmiYD6X5PiRpeJXb0iOkhaFTAXvayam6R5dj+vsel/af/yYns6jjXySAXNiJAY/XHBG6lh6bji20pu+2SCCOIV/FgWHmggby7SGG503FH38mdIV2/7ao+mcSwf7oM+YyexwUPpvH9A52hVhJoR/KdC7Lb309pAIg=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1603307685; bh=pB/2CUsej/l4Pc57qDU7JGzpWLc=; l=1002; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jQDzHeaWayQb2TZCZv66mRCz9kIn7LPSuQg/gYxziS39GwViF10/P2yUQtV4EBnxa hHBXSiLr4CtK67rbxXFNT4PXVHpvbUUnG7EWq4wVT1QGLJz9aneTrJFg/Jou1CQoch u7ArUXq1VtaQihIz7Tjsv/et4dklV8/Qyl5YSef4= X-Originating-IP: [184.90.157.212] Date: Wed, 21 Oct 2020 15:14:45 -0400 From: Steve Litt To: supervision@list.skarnet.org Subject: Re: Dependencies in S6 Message-ID: <20201021151445.71486a0b@mydesk.domain.cxm> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 21 Oct 2020 13:26:25 +0000 "Laurent Bercot" wrote: > "A is ready" means: > - if A is a oneshot: when the script has completed > - if A is a longrun: > * if there is a notification-fd file in the service definition > directory: when the daemon has notified readiness > * if there is no such file: as soon as the run script has started > (which is not a good readiness indicator; it is akin to starting B > _right after A_, essentially in parallel, so you may have race > conditions here - which is why you should always use readiness > notifications.) I seem to remember that s6 also has specially named shellscript to determine dependency readiness. So, for instance, process B requires a functioning network, the shellscript would contain a ping command or an ip command. I do this all the time, informally. SteveT Steve Litt Autumn 2020 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive