Changeset 478


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

pkg/deb/init.d/jobmond:

  • fix
File:
1 edited

Legend:

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

    r477 r478  
    1818        echo -n "Starting $DESC: "
    1919        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; }
    2121        echo "$NAME."
     22        exit 0
    2223        ;;
    2324  stop)
    2425        echo -n "Stopping $DESC: "
    2526        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; }
    2728        echo "$NAME."
    2829        rm -f "$PIDFILE"
Note: See TracChangeset for help on using the changeset viewer.