Skip to content

Commit

Permalink
Switch starting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
brablc committed Jun 3, 2024
1 parent 4b6d603 commit a1ec360
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions docker-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ source "./config.sh"
source "./logger.sh"
source "./checks.sh"

log_info "Starting event alerter ..."
./event-alerter.py &
trap "kill $!" EXIT

services=$(./services.sh 2>&1)
if [ $? != 0 ]; then
exit
fi
if [ $? = 0 ]; then
log_info "Initial list of services:"
echo "$services"

log_info "Initial list of services:"
echo "$services"
log_info "Starting port alerter ..."
./port-alerter.sh &
trap "kill $!" EXIT
fi

log_info "Starting port alerter ..."
./port-alerter.sh
log_info "Starting event alerter ..."
./event-alerter.py

0 comments on commit a1ec360

Please sign in to comment.