--- /etc/rc.d/mysqld~ 2009-02-01 22:11:41.000000000 +0100 +++ /etc/rc.d/mysqld 2009-02-01 22:14:40.000000000 +0100 @@ -9,7 +9,9 @@ . /etc/rc.d/functions getPID() { - echo `pidof -o %PPID /usr/sbin/mysqld` + if [ -f $MYSQLD_ROOT/$HOSTNAME.pid ]; then + echo `cat $MYSQLD_ROOT/$HOSTNAME.pid` + fi } if [ ! `egrep '^mysql:' /etc/group` ]; then @@ -44,7 +46,7 @@ stat_fail exit 1 else - echo $(getPID) >/var/run/mysqld.pid + cp $MYSQLD_ROOT/$HOSTNAME.pid /var/run/mysqld.pid add_daemon mysqld stat_done fi