]> git.pld-linux.org Git - packages/drizzle.git/commitdiff
- use ssd for shutdown, as that waits until process dies
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 5 Dec 2008 00:15:15 +0000 (00:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drizzle.init -> 1.3

drizzle.init

index 6cb28ae2339c2ca7e83b49f46bda08ef7bcfede8..16557127cdfc744410a963c8c686bd36dcd4ea35 100644 (file)
@@ -47,7 +47,16 @@ stop() {
        if [ -f /var/lock/subsys/drizzle ]; then
                # Stop daemons.
                msg_stopping "Drizzle Server"
-               killproc --pidfile /var/lib/drizzle/drizzle.pid drizzled -TERM
+               /sbin/start-stop-daemon -q --stop \
+                       --retry TERM/600/KILL/10 \
+                       -s TERM --pidfile /var/lib/drizzle/drizzle.pid
+               local result=$?
+               if [ "$result" -eq 0 ]; then
+                       ok
+               else
+                       fail
+               fi
+
                rm -f /var/lock/subsys/drizzle
        else
                msg_not_running "Drizzle Server"
This page took 0.091424 seconds and 4 git commands to generate.