nicer error on 'weave stop' and make it idempotent
This commit is contained in:
1 parent
b6351acb66
commit
710cf7ea8a
1 file changed
+3
-2
+3
-2
@@ -135,8 +135,9 @@ case "$COMMAND" in
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
docker kill weave >/dev/null
|
if ! docker rm -f weave >/dev/null 2>&1 ; then
|
||||||
docker rm weave >/dev/null
|
echo "Weave is not running."
|
||||||
|
fi
|
||||||
if command_exists conntrack
|
if command_exists conntrack
|
||||||
then
|
then
|
||||||
conntrack -D -p udp --dport 6783 >/dev/null 2>&1
|
conntrack -D -p udp --dport 6783 >/dev/null 2>&1
|
||||||
|
|||||||
Reference in new issue
Block a user