On another mailing list, there is a discussion about whether or not
it is adequate/proper to manage the MySQL server process via a
watchdog script (namely, DJB's daemontools).

The point behind this watchdog script is to launch a service (such
as mysqld) in the foreground, and notice if that process exits.  An
auxilary tool will send this managed process a SIGTERM, to request
shutdown.

It has been working for me under FreeBSD, and the MySQL docs imply
this should work for other OSes, but someone just pointed out to me
this info:

  <http://www.mysql.com/doc/en/Linux.html>

  "When using LinuxThreads you will see a minimum of three processes
  running. These are in fact threads. There will be one thread for
  the LinuxThreads manager, one thread to handle connections, and
  one thread to handle alarms and signals."

I myself don't use Linux, much less LinuxThreads.  Can anyone advise
how the theree process/threads should handle a SIGTERM in such a
watchdogged environment?

-- 
Brian 'you Bastard' Reichert            <[EMAIL PROTECTED]>
37 Crystal Ave. #303                    Daytime number: (603) 434-6842
Derry NH 03038-1713 USA                 BSD admin/developer at large    

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to