Re: daemontools and mysqld

Andy Bradford <[email protected]> Thu, 05 Oct 2006 20:13:28 -0600
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Thus said "Gary C. New" on Wed, 06 Sep 2006 12:51:35 PDT:

> How does one force mysqld to run in the foreground with daemontools?

This may  have been  necessary in  the past  but it  doesn't seem  to be
necessary now.  I have been setting  up mysqld (5.0 currently)  with the
following run script without problems:

#!/bin/sh
exec /usr/sbin/mysqld \
  --datadir=/var/lib/mysql/data \
  --basedir=/usr/mysql \
  --skip-locking \
  --user=mysql 2>&1

Paths  will most  certainly be  different, but  I have  had no  problems
supervising it.

Andy
-- 
[-----------[system uptime]--------------------------------------------]
  8:13pm  up 25 days,  9:56,  2 users,  load average: 0.02, 0.17, 0.22