nicer error on 'weave stop' and make it idempotent

This commit is contained in:
Matthias Radestock committed 2014-09-11 07:33:02 +01:00
1 parent b6351acb66
commit 710cf7ea8a
1 file changed
+3 -2
+3 -2
View File
@@ -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