]> rtime.felk.cvut.cz Git - orte.git/blob - orte/manager/rc/ORTEManagerd
f0f993ec81d2be46d870b53603aad757dc25ab92
[orte.git] / orte / manager / rc / ORTEManagerd
1 #!/bin/sh
2
3 # description: Start/Stop Manager application for RTPS communication
4 #
5
6 # This init script contains functions specific for redhat
7 # and mandrake init scripts.
8
9 # Source function library.
10 . /etc/rc.d/init.d/functions
11
12
13 # See how we were called.
14 case "$1" in
15   start)
16         echo -n "Starting ORTEManager: "
17
18         daemon ORTEManager -D
19         RETVAL=$?
20         ;;
21   stop)
22         echo -n "Stopping ORTEManager: "
23         killproc ORTEManager
24         RETVAL=$?
25         echo
26         ;;
27   status)
28         status ORTEManager
29         RETVAL=$?
30         ;;
31   restart|reload)
32         $0 stop
33         $0 start
34         RETVAL=$?
35         ;;
36   *)
37         echo "Usage: ORTEManager {start|stop|status|restart|reload}"
38         exit 1
39 esac
40
41 exit $RETVAL
42