Ignore:
Timestamp:
02/05/08 15:24:00 (16 years ago)
Author:
bastiaans
Message:

pkg/deb:

  • misc fixes for Debian packages
File:
1 edited

Legend:

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

    r442 r453  
    88PIDFILE="/var/run/jobmond.pid"
    99
    10 test -x $DAEMON || exit 0
     10test -x $DAEMON || return 0
    1111
    1212OPTIONS=""
     
    1818        echo -n "Starting $DESC: "
    1919        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
    20                 --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; exit 0; }
     20                --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; return 0; }
    2121        echo "$NAME."
    2222        ;;
     
    2424        echo -n "Stopping $DESC: "
    2525        start-stop-daemon --stop  --quiet --pidfile /var/run/$NAME.pid \
    26                 --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 0; }
     26                --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; return 0; }
    2727        echo "$NAME."
    2828        rm -f "$PIDFILE"
Note: See TracChangeset for help on using the changeset viewer.