mariadb: fix rc script for new start-stop-daemon
This commit is contained in:
parent
a8300db910
commit
8fd37b8d4e
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/WHXgFfhqCFHrZlQn/FBt5Bxxt3PknY6Io3axYNuZzoJxWGLdDUgzS3T9/7fN+u4Dg0qRTHwp38hGVu2kFif2AI=
|
||||
SHA256 (Pkgfile) = 022555aea9896f55adc8a8a4200c27eb402a6a0fd22f54e44133dd2f13e99097
|
||||
RWSE3ohX2g5d/YLIO1wAdnWrdjJJZMYqVJzvjEKhXHTJKUTvqUnmnmpLxuEFsdDEsXIdwUQxso/SDLRDWRPH08tsnbSZaL/Z+gs=
|
||||
SHA256 (Pkgfile) = 5caeefaeb5984d603cd8852c0e3efb410981f25584cce89096ad91c241cf45c1
|
||||
SHA256 (.footprint) = c82c3df99d9b6ce5dc0b57e1589e7a6778d8b9c2bee894e9fc633796e080dada
|
||||
SHA256 (mariadb-10.3.13.tar.gz) = b2aa857ef5b84f85a7ea60a1eac7b34c0ca5151c71a0d44ce2d7fb028d71459a
|
||||
SHA256 (mariadb) = 2456087761d745cf6dfde7c1b5574b1f07f5dbe9e4ea74722bf19463c5cfbf32
|
||||
SHA256 (mariadb) = 737fe0eaad407e2b078ba21c1e4082dc4361da10354939ed4f6da651a76a8c1f
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
name=mariadb
|
||||
version=10.3.13
|
||||
release=1
|
||||
release=2
|
||||
source=(https://downloads.mariadb.org/interstitial/$name-$version/source/$name-$version.tar.gz
|
||||
mariadb)
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
SSD=/sbin/start-stop-daemon
|
||||
PROG=/usr/sbin/mysqld
|
||||
NAME=mysqld
|
||||
PID=/var/run/mysqld/mysqld.pid
|
||||
OPTS="--pid-file=$PID"
|
||||
|
||||
@ -13,14 +14,14 @@ start)
|
||||
$SSD --start -bC --pidfile $PID --exec $PROG -- $OPTS
|
||||
;;
|
||||
stop)
|
||||
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID
|
||||
$SSD --stop --remove-pidfile --retry 10 --name $NAME --pidfile $PID
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
$SSD --status --pidfile $PID
|
||||
$SSD --status --name $NAME --pidfile $PID
|
||||
case $? in
|
||||
0) echo "$PROG is running with pid $(cat $PID)" ;;
|
||||
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user