Y
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
d0
4513 days ago
But also 100% not my problem :)
link
pjscott
4513 days ago
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.
link
jude-
4512 days ago
What stopped you from spawning the daemon in a cgroup?
link
pjscott
4512 days ago
I didn't know about them at the time, and I wasn't the one who wrote the script that spawned it.
link