I'm using s6 (http://skarnet.org/software/s6/) in order to supervise multiple processes.

I have couple services in my /etc/s6/ folder and one of them just need to call the start action from an init.d script.

As of now the script is well started but then it's trying to re-start it again and again.

Is there a way to avoid this ?

  • If you're going to copy and paste the same question you've already posted elsewhere, at least have the decency to remove the vote count from the other site so we don't feel like an afterthought. – yoonix May 28 '15 at 18:03
  • ... thank you for your helpful comment (thumbup) and I did that as I opened the question in the wrong platform ... And I have no idea about your vote things and to be honest ... I don't care about the votes ! Next one ? – ZedTuX May 28 '15 at 20:19

If your service is a one-shot, i.e. it needs to run once and die, but not be kept alive, then it's not a good candidate for supervision. Process supervision is only good for long-running processes, a.k.a. daemons.

The correct solution to your problem is to take your one-shot script out of the set of supervised services, and run it at some point in your initialization procedure without trying to have s6-svscan/s6-supervise manage it.

| improve this answer | |
  • 1
    Hey you're one of the s6 developers ! :-) Salut ! – ZedTuX May 29 '15 at 13:21
  • I think, he's not only one of the developers, but developer behind Skarnet and s6. – xZero Nov 23 '18 at 14:16

You can do this with s6, by including s6-svc -O /etc/s6/servicefolder at the beginning of your run script. This will tell to s6 to not start this service again.

Source: https://skarnet.org/software/s6/s6-svc.html

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.