[ceph] prevent from removing monitor on itself
This commit is contained in:
parent
2108400c40
commit
f76db6ea6b
1 changed files with 4 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 0 ]; then
|
||||
echo "$0 (no arguments"
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "$0 <monitor>"
|
||||
echo "f.i. $0 serverX"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mon=mon.$(hostname)
|
||||
mon=mon.$1
|
||||
|
||||
# Starting with monit, if available
|
||||
if [ -e /etc/monit ]; then
|
||||
|
|
Loading…
Reference in a new issue