3 # geniwrapper Wraps PLCAPI into the GENI compliant API
7 # description: Wraps PLCAPI into the GENI compliant API
16 # source function library
17 . /etc/init.d/functions
21 echo -n $"Starting GENIWrapper: "
23 if [ "$GENI_REGISTRY_ENABLED" ]; then
25 daemon /usr/bin/sfa-server.py -r -d $OPTIONS
28 if [ "$GENI_AGGREGATE_ENABLED" ]; then
30 daemon /usr/bin/sfa-server.py -a -d $OPTIONS
33 if [ "$GENI_SM_ENABLED" ]; then
35 daemon /usr/bin/sfa-server.py -s -d $OPTIONS
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geniwrapper
45 echo -n $"Shutting down GENIWrapper: "
46 killproc sfa-server.py
50 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/geniwrapper
67 if [ -f /var/lock/subsys/geniwrapper ]; then
77 echo $"Usage: $0 {start|stop|restart|condrestart|status}"