diff options
Diffstat (limited to 'recipes/mysql/files/mysqld.sh')
-rw-r--r-- | recipes/mysql/files/mysqld.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/recipes/mysql/files/mysqld.sh b/recipes/mysql/files/mysqld.sh index c94772e202..479ebdb257 100644 --- a/recipes/mysql/files/mysqld.sh +++ b/recipes/mysql/files/mysqld.sh @@ -7,13 +7,17 @@ case "$1" in /usr/bin/mysqld_safe & ;; stop) - if test -f /var/run/mysqld.pid ; then - PID=`cat /var/run/mysqld.pid` + if test -f /var/lib/mysql/mysqld.pid ; then + PID=`cat /var/lib/mysql/mysqld.pid` kill $PID fi ;; + restart) + $0 stop + $0 start + ;; *) - echo "Usage: /etc/init.d/mysqld {start|stop}" + echo "Usage: /etc/init.d/mysqld {start|stop|restart}" ;; esac |