News for hackers. Stuff that matters.
Re:How not to test that mysqld is alive by kree10 on Monday October 05, 2009 @01:31PM (#862205)
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 .

Re:How not to test that mysqld is alive by jrockway on Monday October 05, 2009 @04:22PM (#862687)
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.

Re:How not to test that mysqld is alive by trapper on Tuesday October 06, 2009 @01:45AM (#863615)
Can you use daemontools to monitor/kill/restart processes that run out of memory but don't exit?