Skip to content

Commit 0429542

Browse files
committed
Found mystery culprit - two instances running and overwriting temp files
1 parent e720a3f commit 0429542

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

docker-cmd.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
# shellcheck disable=SC2064,SC2181
23

34
source "./config.sh"
45
source "./logger.sh"
@@ -11,18 +12,15 @@ if [ $? != 0 ]; then
1112
services=$(./services.sh 2>&1)
1213
fi
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

swarm-alerter.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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=""

0 commit comments

Comments
 (0)