radosgw: make stop succeed when not running

This fixes apt-get errors like

No /usr/bin/radosgw found running; none killed.
invoke-rc.d: initscript radosgw, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-10-03 15:23:15 -07:00
parent c49c19c1e3
commit 4ae8f1c9e9

View File

@ -65,7 +65,7 @@ case "$1" in
$0 start
;;
stop)
start-stop-daemon --stop -x $RADOSGW
start-stop-daemon --stop -x $RADOSGW --oknodo
;;
*)
echo "Usage: $0 start|stop|restart" >&2