Changeset 480 for trunk/pkg/deb/init.d
- Timestamp:
- 02/22/08 12:42:25 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pkg/deb/init.d/jobmond
r478 r480 1 #! 1 #!/bin/sh 2 2 3 3 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin … … 6 6 DESC="Job Monitor Daemon" 7 7 8 PIDFILE="/var/run/ jobmond.pid"8 PIDFILE="/var/run/$NAME.pid" 9 9 10 10 test -x $DAEMON || return 0 … … 17 17 start) 18 18 echo -n "Starting $DESC: " 19 start-stop-daemon --start --quiet -- pidfile /var/run/$NAME.pid\20 -- exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { rm -f "$PIDFILE";echo "start failed."; exit 0; }19 start-stop-daemon --start --quiet --startas "$DAEMON" --pidfile "$PIDFILE" -- \ 20 --pidfile="$PIDFILE" $OPTIONS || { echo "start failed."; exit 0; } 21 21 echo "$NAME." 22 22 exit 0 … … 24 24 stop) 25 25 echo -n "Stopping $DESC: " 26 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid\26 start-stop-daemon --stop --quiet --pidfile "$PIDFILE" \ 27 27 --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 0; } 28 28 echo "$NAME."
Note: See TracChangeset
for help on using the changeset viewer.