3 # /etc/rc.d/mysqld: start/stop mysqld daemon
6 SSD
=/sbin
/start-stop-daemon
9 PID
=/var
/run
/mysql
/mysqld.pid
10 LOG
=/var
/log
/mysqld.log
14 $SSD --start -bC --pidfile $PID --exec $PROG >> $LOG 2>&1
17 $SSD --stop --remove-pidfile --retry 10 --pidfile $PID
24 $SSD --status --pidfile $PID
26 0) echo "$PROG is running with pid $(cat $PID)" ;;
27 1) echo "$PROG is not running but the pid file $PID exists" ;;
28 3) echo "$PROG is not running" ;;
29 4) echo "Unable to determine the program status" ;;
33 echo "usage: $0 [start|stop|restart|status]"