File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ # shellcheck disable=SC2064,SC2181
23
34source " ./config.sh"
45source " ./logger.sh"
@@ -11,18 +12,15 @@ if [ $? != 0 ]; then
1112 services=$( ./services.sh 2>&1 )
1213fi
1314
14- if [[ " $services " != " " ]]; then
15+ if [[ $services != " " ]]; then
1516 log_info " Starting port/sock alerter (initial list of services) ..."
1617 echo " $services "
1718
1819 ./port-alerter.sh &
1920 trap " kill $! " EXIT
2021
2122 log_info " Starting swarm alerter (initial state of nodes) ..."
22- ./nodes.sh --verbose
23-
24- ./swarm-alerter.sh &
25- trap " kill $! " EXIT
23+ ./nodes.sh
2624
2725 ./swarm-alerter.sh &
2826 trap " kill $! " EXIT
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ function check_nodes() {
1515 local where=" at $HOSTNAME "
1616
1717 active_node_count=$( ./nodes.sh | wc -l)
18- if (( active_node_count == 0 )) ; then
19- log_warn " Got zero nodes. Show verbose and try again ..."
20- ./nodes.sh --verbose
21- active_node_count=$( ./nodes.sh | wc -l)
22- fi
2318
2419 action=" "
2520 appendix=" "
You can’t perform that action at this time.
0 commit comments