Changeset 479 for trunk/pkg/deb/init.d
- Timestamp:
- 02/22/08 12:18:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pkg/deb/init.d/jobarchived
r453 r479 17 17 echo -n "Starting $DESC: " 18 18 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ 19 --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; return0; }19 --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; exit 0; } 20 20 echo "$NAME." 21 exit 0 21 22 ;; 22 23 stop) 23 24 echo -n "Stopping $DESC: " 24 25 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ 25 --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; return0; }26 --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 0; } 26 27 echo "$NAME." 27 28 rm -f "$PIDFILE"
Note: See TracChangeset
for help on using the changeset viewer.