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

That's one of my favorite shell techniques.

Still, I think they're doing it wrong. For keeping daemons alive I rely on http://cr.yp.to/daemontools.html .



This is the correct answer -- when you fork the process yourself, you don't have to guess about it dying, you get SIGCHLD and can handle it accordingly.

If you use daemontools, this code is already written for you.


Can you use daemontools to monitor/kill/restart processes that run out of memory but don't exit?




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

Search: