]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Convert remaining init script actions over to suse.
authorThorsten Behrens <tbehrens@suse.com>
Wed, 30 Jul 2014 22:17:11 +0000 (00:17 +0200)
committerNathan Cutler <ncutler@suse.cz>
Mon, 20 Apr 2015 12:28:17 +0000 (14:28 +0200)
Fix for bnc#887880 - both restart and stop now employ
killproc instead of the debian-ish start-stop-daemon.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
(cherry picked from commit 9de65177c0d2573c8449f7ea1a040fd397c4dc24)
(cherry picked from commit 8c161c1fed3ce274472faf4ded74d8479e05a9eb)

src/init-radosgw

index 8e8a5396619ffe7e3cd0e26316d32db5e47ea50e..91557fd5b5c160aff8a196c2f3d51b582fe76d0f 100644 (file)
@@ -80,14 +80,16 @@ case "$1" in
         ;;
     reload)
         echo "Reloading $name..."
-        start-stop-daemon --stop --signal HUP -x $RADOSGW --oknodo
+        /sbin/killproc -x -SIGHUP $RADOSGW
+        true
         ;;
     restart|force-reload)
         $0 stop
         $0 start
         ;;
     stop)
-        start-stop-daemon --stop -x $RADOSGW --oknodo
+        /sbin/killproc -x $RADOSGW
+        true
         ;;
     status)
         daemon_is_running $RADOSGW