mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
init-radosgw*: add status
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
39fff6a15a
commit
4ea24ae79f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user