init-radosgw*: add status

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-06-06 15:33:23 +02:00
parent 39fff6a15a
commit 4ea24ae79f
2 changed files with 18 additions and 2 deletions

View File

@ -78,8 +78,16 @@ case "$1" in
stop)
start-stop-daemon --stop -x $RADOSGW --oknodo
;;
status)
if pidof $RADOSGW >/dev/null; then
echo "$RADOSGW is running."
else
echo "$RADOSGW is not running."
RETVAL=1
fi
;;
*)
echo "Usage: $0 start|stop|restart" >&2
echo "Usage: $0 start|stop|restart|status" >&2
exit 3
;;
esac

View File

@ -84,8 +84,16 @@ case "$1" in
killproc $RADOSGW
echo "Stopping radosgw..."
;;
status)
if pidof $RADOSGW >/dev/null; then
echo "$RADOSGW is running."
else
echo "$RADOSGW is not running."
RETVAL=1
fi
;;
*)
echo "Usage: $0 start|stop|restart" >&2
echo "Usage: $0 start|stop|restart|status" >&2
exit 3
;;
esac