Changeset 453 for trunk/pkg


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

pkg/deb:

  • misc fixes for Debian packages
Location:
trunk/pkg/deb
Files:
3 edited

Legend:

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

    r443 r453  
    1717        echo -n "Starting $DESC: "
    1818        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
    19                 --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; exit 1; }
     19                --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { echo "start failed."; return 0; }
    2020        echo "$NAME."
    2121        ;;
     
    2323        echo -n "Stopping $DESC: "
    2424        start-stop-daemon --stop  --quiet --pidfile /var/run/$NAME.pid \
    25                 --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 1; }
     25                --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; return 0; }
    2626        echo "$NAME."
    2727        rm -f "$PIDFILE"
  • 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"
  • trunk/pkg/deb/jobarchived/DEBIAN/prerm

    r447 r453  
    55/etc/init.d/jobarchived stop || true
    66update-rc.d -f jobarchived remove || true
     7
     8exit 0
Note: See TracChangeset for help on using the changeset viewer.