[ceph mgr] Add script to stop/delete
This commit is contained in:
parent
90b5a3013e
commit
30cec4f925
1 changed files with 17 additions and 0 deletions
17
ceph-mgr-stop-delete
Executable file
17
ceph-mgr-stop-delete
Executable 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)/
|
Loading…
Reference in a new issue