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