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
|
||||
;;
|
||||
stop)
|
||||
docker kill weave >/dev/null
|
||||
docker rm weave >/dev/null
|
||||
if ! docker rm -f weave >/dev/null 2>&1 ; then
|
||||
echo "Weave is not running."
|
||||
fi
|
||||
if command_exists conntrack
|
||||
then
|
||||
conntrack -D -p udp --dport 6783 >/dev/null 2>&1
|
||||
|
||||
Reference in new issue
Block a user