Skip to content

Commit

Permalink
Merge pull request voxpupuli#50 from sathieu/DAEMON-info
Browse files Browse the repository at this point in the history
$DAEMON info is only available for the prometheus daemon
  • Loading branch information
bastelfreak committed Sep 24, 2017
2 parents 306d0cc + 9adc576 commit f7c44f0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions templates/daemon.debian.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ do_start()
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid $USER --background --make-pidfile -- \
$DAEMON_ARGS \
|| return 2

for i in `seq 1 30`; do
if ! start-stop-daemon --quiet --stop --test --pidfile $PIDFILE --exec $DAEMON --user $USER; then
RETVAL=2
sleep 1
continue
fi
if "$DAEMON" info ${RPC_ADDR} >/dev/null; then
return 0
fi
done
return "$RETVAL"
}


Expand Down

0 comments on commit f7c44f0

Please sign in to comment.