top | item 44991166

(no title)

cbzbc | 6 months ago

runit doesn't propagate SIGTERM to services it starts.

discuss

order

kragen|6 months ago

Hmm, is that desirable? If someone's going around sending SIGTERM to random processes they might also send SIGKILL, and there's no way Nitro can propagate SIGKILL to processes it starts.

cbzbc|6 months ago

It does, because SIGTERM is traditionally understood as the trigger for a shutdown. Docker - for instance - will send a SIGTERM to pid 1 when a container is stopped - which goes back to a previous comment here about using a real init as pid 1 if the thing in your container forks: https://news.ycombinator.com/item?id=44990092

atahanacar|6 months ago

It does if you use SIGHUP.