Skip to content

Commit

Permalink
Prevent scion.sh from exiting if host zk isn't running. (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
kormat authored Oct 9, 2018
1 parent 62f4b0c commit c4a36fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c4a36fb

Please sign in to comment.