Skip to content

Commit

Permalink
debian/statsd.init: fix the start-stop-daemon --test line.
Browse files Browse the repository at this point in the history
give the same arguments as the real start-stop-daemon line (startas
instead of exec), otherwise the daemon is not properly detected as started.
  • Loading branch information
fredj committed Jul 18, 2012
1 parent 0d14258 commit f46fd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debian/statsd.init
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
start-stop-daemon --start --quiet -m --pidfile $PIDFILE --startas $DAEMON --background --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet -m --pidfile $PIDFILE --startas $DAEMON --background -- \
$DAEMON_ARGS > /dev/null 2> /var/log/$NAME-stderr.log \
Expand Down

0 comments on commit f46fd79

Please sign in to comment.