Hacker News new | ask | show | jobs
by octo_t 4513 days ago
for some value of fine.

  service my_service restart 
required writing 100+ shell scripts, each of which was error prone and difficult.
1 comments

But also 100% not my problem :)
If one of those scripts forgets to kill a process's children (because the process itself was supposed to handle that), and a server ends up with a bazillion orphaned processes, then it could well become your problem!

This happened to me once. Never again, damn it.

What stopped you from spawning the daemon in a cgroup?
I didn't know about them at the time, and I wasn't the one who wrote the script that spawned it.