Re: "Back off" setting for crashing services with s6+openrc?

From: Tor Rune Skoglund <trs_at_fourc.eu>
Date: Fri, 23 Sep 2022 09:29:37 +0200

Hello,


Den 22.09.2022 22:21, skrev John W Higgins:
> On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund <trs_at_fourc.eu> wrote:
>> As a generic question, is there any setting with this s6+openrc config
>> that would make s6 "back off" a configurable number of seconds before
>> doing the restart?
> Does something as simple as changing your run script to be something like
>
> run_my_crashing_app || sleep 10
>
> Work? The run script will sit there for 10 seconds if your app fails. Not
> built in - but should accomplish the task pretty easily.

Thanks, yes, that would work.

However, I was just hoping this could be set on a more global s6 level
so that it would catch any misbehaving service in general.

- Tor Rune Skoglund
Received on Fri Sep 23 2022 - 09:29:37 CEST

This archive was generated by hypermail 2.4.0 : Fri Sep 23 2022 - 09:30:10 CEST