[ceph mgr] Add script to stop/delete

This commit is contained in:
Nico Schottelius 2018-05-30 14:03:40 +02:00
parent 90b5a3013e
commit 30cec4f925
1 changed files with 17 additions and 0 deletions

17
ceph-mgr-stop-delete Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
if [ $# -ne 0 ]; then
echo "$0 (no arguments"
exit 1
fi
svc=mgr.$(hostname)
# Starting with monit, if available
if [ -e /etc/monit ]; then
/opt/ungleich-tools/monit-remove "$svc"
else
/etc/init.d/ceph stop "$svc"
fi
rm -rf /var/lib/ceph/mgr/ceph-$(hostname)/