Re: [s6-rc] How to handle longrun failures

2017-03-02 Thread Laurent Bercot
My daemon does not have readiness notification, so s6-rc considers the transition to be successful. I do s6-svc -d . in the finish script, so the daemon is not restarted by s6-supervise, but s6-rc lists it as "up". To get s6-rc back to a coherent state, I need to call "s6-rc -d change svc",

Re: [s6-rc] How to handle longrun failures

2017-03-02 Thread Laurent Bercot
Using s6-rc, I am not sure how to handle longrun failures. Say I have a daemon which fails to start (e.g. missing library, cannot read its config...). I don't want to start it again. It sounds like you don't want to supervise this daemon. In that case, run it as a oneshot that backgrounds