diff options
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 () { |