3 # sfa Wraps PLCAPI into the SFA compliant API
7 # description: Wraps PLCAPI into the SFA compliant API
13 # source function library
14 . /etc/init.d/functions
17 # if key doesnt exist use sfa_componenet_setup to get it
18 if [ ! -f /var/lib/sfa/server.key ]; then
19 /usr/bin/sfa_component_setup.py -k
24 echo -n $"Starting SFA: "
26 if [ "$SFA_CM_ENABLED" ]; then
28 # make sure server key (nodes private key) exists first
30 /usr/bin/sfa-start.py -c -d $OPTIONS
35 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa
40 echo -n $"Shutting down SFA: "
45 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sfa
62 if [ -f /var/lock/subsys/sfa ]; then
72 echo $"Usage: $0 {start|stop|restart|condrestart|status}"