4 ms·
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 http://
by kree10 17y ago
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 http://cr.yp.to/daemontools.html .
- jrockway 17y agoThis 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.
- trapper 17y agoCan you use daemontools to monitor/kill/restart processes that run out of memory but don't exit?