Stopping the server doesn't work either. My current start-stop-daemon call 
looks like:

  if start-stop-daemon \
    --start \
    --exec $DAEMON \
    -- --pid-file=$PIDFILE \
       --user=$GEARMANUSER \
       --daemon \
       $PARAMS 

That means there is no option --pidfile to start-stop-daemon, but instead the 
--pid-file option to gearmand. Then it works. gearmand creates the pidfile 
which is then looked up by start-stop-daemon when stopping the server:

  if start-stop-daemon \
    --stop \
    --oknodo \
    --exec $DAEMON \
    --pidfile $PIDFILE

A status option for the init script would also be nice :-)

Thomas Koch, http://www.koch.ro



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to