summaryrefslogtreecommitdiffstats
path: root/source/ap/mariadb/rc.mysqld
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2020-06-30 18:56:59 +0000
committer Eric Hameleers <alien@slackware.com>2020-07-01 08:59:52 +0200
commitdba2771e932227541afc45ae9b231c132c349508 (patch)
tree8d63faf3f89dd5a359770b8ee074a3f8e49fe196 /source/ap/mariadb/rc.mysqld
parent7d1f5038f6e38533da9487a62e683a9222fe7208 (diff)
downloadcurrent-dba2771e932227541afc45ae9b231c132c349508.tar.gz
current-dba2771e932227541afc45ae9b231c132c349508.tar.xz
Tue Jun 30 18:56:59 UTC 202020200630185659
a/kernel-firmware-20200629_1a0c0c2-noarch-1.txz: Upgraded. ap/mariadb-10.5.4-x86_64-2.txz: Rebuilt. rc.mysqld: stop the database by PID to avoid improperly stopping other instances that were not started by this script. Thanks to denydias. d/vala-0.48.7-x86_64-1.txz: Upgraded. l/opusfile-0.12-x86_64-1.txz: Upgraded. n/ca-certificates-20200630-noarch-1.txz: Upgraded. This update provides the latest CA certificates to check for the authenticity of SSL connections. x/libwacom-1.4.1-x86_64-1.txz: Upgraded.
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 5ba4ebfe1..8f63c29e7 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