diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-29 22:27:05 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-29 22:27:05 +0100 |
commit | fd27c8f2e0170fec22c78cf5e3dafa7e3fb3fa58 (patch) | |
tree | eff9509f6eaaf280c8cea0bab38287e69c7768f1 | |
parent | 749e84b11ec8b01409027ff2384789c2bf273253 (diff) |
Make the init script work even if /sbin is not on the PATH
-rw-r--r-- | config/alert-tracks-debian.ugly | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/alert-tracks-debian.ugly b/config/alert-tracks-debian.ugly index 838bb6458..6a88ab67d 100644 --- a/config/alert-tracks-debian.ugly +++ b/config/alert-tracks-debian.ugly @@ -24,16 +24,16 @@ trap "" 1 export PIDFILE quietly_start_daemon() { - start-stop-daemon --quiet --start --pidfile "$PIDFILE" --chuid "$DUSER" --startas "$DAEMON" -- $DAEMON_ARGS + /sbin/start-stop-daemon --quiet --start --pidfile "$PIDFILE" --chuid "$DUSER" --startas "$DAEMON" -- $DAEMON_ARGS } start_daemon() { - start-stop-daemon --start --pidfile "$PIDFILE" --chuid "$DUSER" --startas "$DAEMON" -- $DAEMON_ARGS \ + /sbin/start-stop-daemon --start --pidfile "$PIDFILE" --chuid "$DUSER" --startas "$DAEMON" -- $DAEMON_ARGS \ > "$LOGFILE" 2>&1 } stop_daemon() { - start-stop-daemon --stop --pidfile "$PIDFILE" + /sbin/start-stop-daemon --stop --pidfile "$PIDFILE" } restart() { stop; start; } |