John W Higgins writes: > Good Day, > > On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund 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. I think there's a correctness problem with this approach. An s6-supervise process supervises its direct child, which is supposed to be the daemon under supervision. But in this case it would be the shell, so s6 doesn't know the daemon's PID, and so can't signal it. If s6 tries to stop the service, it will signal the shell, which won't necessarily do the right thing and stop the application. An s6 service needs to ensure that the service is stopped if s6-supervise's direct child dies.