skarnet / s6

The s6 supervision suite.
https://skarnet.org/software/s6/
ISC License
760 stars 34 forks source link

A service is not restarted after SIGKILL #38

Closed p01arbear closed 1 month ago

p01arbear commented 1 month ago

Hello. I have s6 version 2.13.0.0 and s6-overlay 3.2.0.0 from Jun 7 2024.

A supervised service got SIGKILL and is not being restarted after death, even though this behavior is declared as the default in the docs. I don't see any information in the docs on how to debug this. Running s6-svc -U/s6-svc -u before the SIGKILL also doesn't change the behaviour. s6-svstat flags are:

# s6-svstat -o up,wantedup,normallyup,ready,paused true true true true false

There is no ./down file in the service directory to prevent the service from being restarted.

# ls -R MY_SERVICE_DIR .: event finish run supervise ./event: ./supervise: control death_tally lock status

Logs with S6_VERBOSITY=5 shows nothing:

./run: line 28: 282 Killed     s6-setuidgid    <MY_SERVICE_PATH>
s6-rc: info: bringing selected services down
s6-rc: info: service legacy-services: stopping
s6-ipcclient: info: s6-ipcclient: connected to /run/s6-rc/servicedirs/s6rc-oneshot-runner/s
s6-rc: info: service legacy-services successfully stopped

How can I make the service restart after receiving a SIGKILL or debug this at least?

skarnet commented 1 month ago

Yeah, so:

I don't know, man. I'm not sure the problem is where you say it is.

p01arbear commented 1 month ago

The problem was in the my s6-overlay scripts. :facepalm:

  • You first write a support request to my personal e-mail address.
  • Then you try to subscribe to the supervision mailing-list, and despite being told that your subscription will be processed manually, you don't wait for the approval
  • So you open an issue here, despite github not being an official support channel for s6

Yes, I think that there is nothing criminal about writing to the mailing list and to a github issue at the same time. It's not said here or here that users shouldn't do that. Regarding to the personal email: sorry to bother you. I rushed.

Thank you!