4 ms·
love to see new init projects. how does it stack up against runit (the last one i really familiarized myself with on void linux)?
by GuinansEyebrows 1y ago
love to see new init projects. how does it stack up against runit (the last one i really familiarized myself with on void linux)?
- kragen 1y agoShe credits runit and daemontools as inspiration, and it looks extremely similar. I hope that at some point she writes a comparison explaining what Nitro does differently from runit and why.
- cbzbc 1y agorunit doesn't propagate SIGTERM to services it starts.
- kragen 1y agoHmm, 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 1y agoIt 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 https://news.ycombinator.com/item?id=44990092
- kragen 1y agoInteresting! I didn't know that—I thought that when you told sysvinit to change its runlevel you normally used some slightly richer interface than signals.
- atahanacar 1y agoIt does if you use SIGHUP.