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