summaryrefslogtreecommitdiff
path: root/source/ap/mariadb/rc.mysqld
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/mariadb/rc.mysqld')
-rw-r--r--source/ap/mariadb/rc.mysqld6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/ap/mariadb/rc.mysqld b/source/ap/mariadb/rc.mysqld
index 5ba4ebfe..8f63c29e 100644
--- a/source/ap/mariadb/rc.mysqld
+++ b/source/ap/mariadb/rc.mysqld
@@ -58,10 +58,10 @@ mysqld_start() {
mysqld_stop() {
# If there is no PID file, ignore this request...
if [ -r /var/run/mysql/mysql.pid ]; then
- killall mysqld
+ PID=$(cat /var/run/mysql/mysql.pid)
+ kill $PID
# Wait at least one minute for it to exit, as we don't know how big the DB is...
- for second in 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 \
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 60 ; do
+ for second in $(seq 0 60) ; do
if [ ! -r /var/run/mysql/mysql.pid ]; then
break;
fi