Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Interesting! 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: