Re: S6 Queries

From: Steve Litt <slitt_at_troubleshooters.com>
Date: Mon, 2 Aug 2021 14:07:32 -0400

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
Received on Mon Aug 02 2021 - 20:07:32 CEST

This archive was generated by hypermail 2.4.0 : Mon Aug 02 2021 - 20:08:07 CEST