summaryrefslogtreecommitdiff
path: root/source/ap/mariadb
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2020-06-30 18:56:59 +0000
committerEric Hameleers <alien@slackware.com>2020-07-01 08:59:52 +0200
commitdba2771e932227541afc45ae9b231c132c349508 (patch)
tree8d63faf3f89dd5a359770b8ee074a3f8e49fe196 /source/ap/mariadb
parent7d1f5038f6e38533da9487a62e683a9222fe7208 (diff)
downloadcurrent-dba2771e932227541afc45ae9b231c132c349508.tar.gz
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')
-rwxr-xr-xsource/ap/mariadb/mariadb.SlackBuild2
-rw-r--r--source/ap/mariadb/rc.mysqld6
2 files changed, 4 insertions, 4 deletions
diff --git a/source/ap/mariadb/mariadb.SlackBuild b/source/ap/mariadb/mariadb.SlackBuild
index 2291bb57..fb9204b0 100755
--- a/source/ap/mariadb/mariadb.SlackBuild
+++ b/source/ap/mariadb/mariadb.SlackBuild
@@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mariadb
VERSION=${VERSION:-$(echo ${PKGNAM}-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# To reduce the package size, the embedded server may be omitted. Currently
# only amarok uses this. To build without embedded support, set this to NO.
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