dont use consul leave
to shutdown, just kill instead
If all servers in a cluster leave, the cluster is basically destroyed. Servers are supposed to just die without leaving, otherwise rejoin no longer works and manual recovery is required. Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
b515601c9c
commit
c4aef429c2
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ start() {
|
|||
|
||||
stop() {
|
||||
echo -n "Shutting down $NAME: "
|
||||
"$CONSUL" leave
|
||||
killproc -p "$PID_FILE" $NAME
|
||||
retcode=$?
|
||||
rm -f /var/lock/subsys/$NAME
|
||||
return $retcode
|
||||
|
@ -88,7 +88,7 @@ case "$1" in
|
|||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $NAME {start|stop|status|reload|restart}"
|
||||
echo "Usage: $NAME {start|stop|status|reload|restart|condrestart|info}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue