diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-11-06 08:39:56 +0100 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-11-06 08:39:56 +0100 |
commit | 189a5b7f7665ce2c1d4d406ca7343ffeb3ea2afd (patch) | |
tree | 587cde15e3451ba5354d35ddb92e0a441d2514d1 /recipes/mysql/files/mysqld.sh | |
parent | c1ff4bb5b83ee24724041aa7babec986b6ad60ab (diff) |
mysql: moved pid dir from /var/run/mysql to /var/lib/mysql as /var/run is created upon boot
(and so var/run disappears)
added restart to init.d script
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 |