3 # geniwrapper Wraps PLCAPI into the GENI compliant API
7 # description: Wraps PLCAPI into the GENI compliant API
13 . /etc/geni/geni_config
15 # source function library
16 . /etc/init.d/functions
20 echo -n $"Starting GENIWrapper: "
22 if [ "$GENI_REGISTRY_ENABLED" ]; then
24 daemon /usr/bin/plc.py -r -d $OPTIONS
27 if [ "$GENI_AGGREGATE_ENABLED" ]; then
29 daemon /usr/bin/plc.py -a -d $OPTIONS
32 if [ "$GENI_SM_ENABLED" ]; then
34 daemon /usr/bin/plc.py -s -d $OPTIONS
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geniwrapper
44 echo -n $"Shutting down GENIWrapper: "
49 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/geniwrapper
66 if [ -f /var/lock/subsys/geniwrapper ]; then
76 echo $"Usage: $0 {start|stop|restart|condrestart|status}"