From: Steve Litt <slitt@troubleshooters.com>
To: supervision@list.skarnet.org
Subject: Re: S6 Queries
Date: Mon, 2 Aug 2021 14:07:32 -0400 [thread overview]
Message-ID: <20210802140732.316b9f4d@mydesk.domain.cxm> (raw)
In-Reply-To: <em5397e5ea-1525-404b-9490-b39ef0cea0a6@elzian>
Laurent Bercot said on Mon, 02 Aug 2021 08:27:30 +0000
>>2. Are there any ways to have loosely coupling dependencies? In
>>systemd, we have After=. After option will help the current service
>>to start after the mentioned service (in after). And the current
>>service will anyway start even if the mentioned service in After
>>fails to start. Do we have such loosely coupled dependency facility
>>in S6?
>
> Not at the moment, no.
I thought the way to do what the OP asked is:
=============================
#!/bin/sh
s6-svc -u myrequirement || exit 1
exec mydaemon -myarg1 -myarg2
=============================
SteveT
Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
next prev parent reply other threads:[~2021-08-02 18:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-02 4:54 Arjun D R
2021-08-02 8:27 ` Laurent Bercot
2021-08-02 18:07 ` Steve Litt [this message]
2021-08-02 19:39 ` Laurent Bercot
2021-08-02 20:42 ` Steve Litt
2021-08-02 21:40 ` Laurent Bercot
2021-08-11 11:05 ` Arjun D R
2021-08-11 14:21 ` Laurent Bercot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210802140732.316b9f4d@mydesk.domain.cxm \
--to=slitt@troubleshooters.com \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).