Re: s6: something like runit's ./check script

From: Jan Bramkamp <crest_at_rlwinm.de>
Date: Tue, 8 Sep 2015 14:10:11 +0200

On 08/09/15 14:05, Laurent Bercot wrote:
> On 08/09/2015 13:51, Jan Bramkamp wrote:
>
>> If the script fails for any reason the service is stuck and won't
>> come up. Such simple scripts shouldn't fail but they might still run
>> into resource limits or other (temporary) problems.
>
> If the polling script fails, it will die. The run script will then
> die. The supervisor will restart it. Eventually, when temporary problems
> get fixed, the polling script will succeed, and the service will
> make it.
>
> Don't overengineer stuff. Because we can easily manage daemons and
> notifications and complex mechanisms doesn't mean we should. ;)

How would the ./run script or more likely the daemon it exec()ed into
die from a failed child process? If it does so reliably I agree that
more elaborated constructs aren't worth the complexity.
Received on Tue Sep 08 2015 - 12:10:11 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC