diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-26 12:25:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-26 12:25:19 +0000 |
commit | 0490e9d01f124c22a0e0817d88f54f13ee269e2f (patch) | |
tree | 4a0da6d8619024043b4430c2a1a883ce81ada36b /main/mariadb/mariadb.initd | |
parent | ef1dfb7ff1fe482f1221205c20516675d5c5940b (diff) | |
download | aports-0490e9d01f124c22a0e0817d88f54f13ee269e2f.tar.bz2 aports-0490e9d01f124c22a0e0817d88f54f13ee269e2f.tar.xz |
main/mariadb: fix initd script
pass the pidfile to the daemon in start_pre
Diffstat (limited to 'main/mariadb/mariadb.initd')
-rw-r--r-- | main/mariadb/mariadb.initd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/mariadb/mariadb.initd b/main/mariadb/mariadb.initd index a652ffaf3f..143ca8ff54 100644 --- a/main/mariadb/mariadb.initd +++ b/main/mariadb/mariadb.initd @@ -8,8 +8,7 @@ getconf() { retry="60" extra_stopped_commands="setup" command="/usr/bin/mysqld_safe" -command_args="--pid-file=$pidfile --syslog --nowatch" - +command_args="--syslog --nowatch" depend() { use net need localmount @@ -23,6 +22,7 @@ setup() { start_pre() { pidfile=$(getconf pid-file "/run/mysqld/mysqld.pid") + command_args="$command_args --pid-file=$pidfile" required_dirs=$(getconf datadir "/var/lib/mysql") if [ ! -d $required_dirs/mysql ]; then eerror "Datadir '$required_dirs' is empty or invalid." |