source: trunk/pkg/init.d/jobmond @ 421

Last change on this file since 421 was 421, checked in by bastiaans, 17 years ago

pkg/init.d/jobmond:

  • path changed

jobmond/jobmond.py:

  • typo bugfixes
  • Property svn:executable set to *
File size: 609 bytes
Line 
1#! /bin/sh
2
3PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
4DAEMON=/usr/bin/jobmond
5NAME=jobmond
6DESC="Job Monitor Daemon"
7
8test -x $DAEMON || exit 0
9
10set -e
11
12case "$1" in
13  start)
14        echo -n "Starting $DESC: "
15        start-stop-daemon --start --quiet -m --pidfile /var/run/$NAME.pid \
16                --exec $DAEMON
17        echo "$NAME."
18        ;;
19  stop)
20        echo -n "Stopping $DESC: "
21        start-stop-daemon --stop  --quiet --oknodo --name $DAEMON \
22                2>&1 > /dev/null
23        echo "$NAME."
24        ;;
25  restart|force-reload)
26        $0 stop
27        $0 start
28        ;;
29  *)
30        echo "Usage: $N {start|stop|restart}" >&2
31        exit 1
32        ;;
33esac
34
35exit 0
Note: See TracBrowser for help on using the repository browser.