Changeset 481 for trunk/pkg/deb/init.d
- Timestamp:
- 02/22/08 12:46:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pkg/deb/init.d/jobarchived
r479 r481 6 6 DESC="Job Archiving Daemon" 7 7 8 PIDFILE="/var/run/ jobarchived.pid"8 PIDFILE="/var/run/$NAME.pid" 9 9 OPTIONS="" 10 10 … … 16 16 start) 17 17 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; } 20 20 echo "$NAME." 21 21 exit 0 … … 23 23 stop) 24 24 echo -n "Stopping $DESC: " 25 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid\25 start-stop-daemon --stop --quiet --pidfile "$PIDFILE" \ 26 26 --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 0; } 27 27 echo "$NAME."
Note: See TracChangeset
for help on using the changeset viewer.