quick fix to start omf-slicemgr
[plcapi.git] / plc.d / omf-slicemgr
1 #!/bin/bash
2 # $Id$
3 # $URL$
4 #
5 # priority: 800
6 #
7
8
9 # Source function library and configuration
10 . /etc/plc.d/functions
11 . /etc/planetlab/plc_config
12 local_config=/etc/planetlab/configs/site.xml
13
14 # Be verbose
15 set -x
16
17 case "$1" in
18     start)
19         if [ "$PLC_OMF_ENABLED" != "1" ] ; then
20             exit 0
21         fi
22
23         MESSAGE=$"Starting the OMF Slice Manager"
24         dialog "$MESSAGE"
25
26         daemon /usr/bin/omf-slicemgr.py &
27
28         result "$MESSAGE"
29         ;;
30 esac
31
32 exit $ERRORS