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