add todo note for f16
[plcapi.git] / plc.d / omf-slicemgr
1 #!/bin/bash
2 #
3 # priority: 800
4 #
5
6
7 # Source function library and configuration
8 . /etc/plc.d/functions
9 . /etc/planetlab/plc_config
10 local_config=/etc/planetlab/configs/site.xml
11
12 # Be verbose
13 set -x
14
15 case "$1" in
16     start)
17         if [ "$PLC_OMF_ENABLED" != "1" ] ; then
18             exit 0
19         fi
20
21         MESSAGE=$"Starting the OMF Slice Manager"
22         dialog "$MESSAGE"
23
24         daemon /usr/bin/omf_slicemgr.py &
25
26         result "$MESSAGE"
27         ;;
28
29     stop)
30         if [ "$PLC_OMF_ENABLED" != "1" ] ; then
31             exit 0
32         fi
33
34         MESSAGE=$"Stopping the OMF Slice Manager"
35         dialog "$MESSAGE"
36
37         killproc omf_slicemgr.py 
38
39         result "$MESSAGE"
40         ;;
41         
42 esac
43
44 exit $ERRORS