Changeset 481


Ignore:
Timestamp:
02/22/08 12:46:48 (16 years ago)
Author:
bastiaans
Message:

init.d/jobarchived:

  • use startas instead of exec
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pkg/deb/init.d/jobarchived

    r479 r481  
    66DESC="Job Archiving Daemon"
    77
    8 PIDFILE="/var/run/jobarchived.pid"
     8PIDFILE="/var/run/$NAME.pid"
    99OPTIONS=""
    1010
     
    1616  start)
    1717        echo -n "Starting $DESC: "
    18         start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
    19                 --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; exit 0; }
     18        start-stop-daemon --start --quiet --startas "$DAEMON" --pidfile "$PIDFILE" -- \
     19                --pidfile="$PIDFILE" $OPTIONS || { echo "start failed."; exit 0; }
    2020        echo "$NAME."
    2121        exit 0
     
    2323  stop)
    2424        echo -n "Stopping $DESC: "
    25         start-stop-daemon --stop  --quiet --pidfile /var/run/$NAME.pid \
     25        start-stop-daemon --stop  --quiet --pidfile "$PIDFILE" \
    2626                --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 0; }
    2727        echo "$NAME."
Note: See TracChangeset for help on using the changeset viewer.