From c4a36fbf4175983a27d10d9d537927d432f5ddcc Mon Sep 17 00:00:00 2001 From: Stephen Shirley Date: Tue, 9 Oct 2018 14:42:01 +0200 Subject: [PATCH] Prevent scion.sh from exiting if host zk isn't running. (#1954) --- scion.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scion.sh b/scion.sh index 6d62f2fdc9..9a32004ccb 100755 --- a/scion.sh +++ b/scion.sh @@ -71,7 +71,9 @@ host_zk_start() { host_zk_stop() { [ -e /var/run/dbus/system_bus_socket ] || return 0 - systemctl is-active --quiet zookeeper && sudo -p "Stopping local zk - [sudo] password for %p: " systemctl stop zookeeper + if systemctl is-active --quiet zookeeper; then + sudo -p "Stopping local zk - [sudo] password for %p: " systemctl stop zookeeper + fi } cmd_mstart() {