diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-07-22 19:10:41 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-07-22 19:10:41 +0300 |
commit | 62a957c4f5dbac595e0c64fd86ae3e4452ec7995 (patch) | |
tree | 224a3ba41a7482f6881e82df88a1d28c4a0c7990 /main/mariadb/mariadb.initd | |
parent | 16c0b18f93e2790e8d84712699f4b49037ae2762 (diff) | |
download | aports-62a957c4f5dbac595e0c64fd86ae3e4452ec7995.tar.bz2 aports-62a957c4f5dbac595e0c64fd86ae3e4452ec7995.tar.xz |
main/mariadb: wait for socket on startup
Diffstat (limited to 'main/mariadb/mariadb.initd')
-rw-r--r-- | main/mariadb/mariadb.initd | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/main/mariadb/mariadb.initd b/main/mariadb/mariadb.initd index 73105ff20f..8409bad26d 100644 --- a/main/mariadb/mariadb.initd +++ b/main/mariadb/mariadb.initd @@ -39,15 +39,19 @@ checkconfig() { start() { checkconfig || return 1 ebegin "Starting mysqld" - start-stop-daemon --pidfile $pidfile \ + if start-stop-daemon --pidfile $pidfile \ --start \ --background \ --stdout /dev/null \ --stderr /dev/null \ - --wait 1500 \ -- \ - /usr/bin/mysqld_safe --pid-file=$pidfile - eend $? + /usr/bin/mysqld_safe --pid-file=$pidfile; then + + ewaitfile 10 /run/mysqld/mysqld.sock + eend 0 + else + eend $? + fi } stop () { |