3 # sfa Wraps PLCAPI into the SFA compliant API
7 # description: Wraps PLCAPI into the SFA compliant API
10 echo "sfa-cm is no longer supported"
11 echo "you should consider rpm -e sfa-cm"
15 [ -f /etc/sfa/sfa_config.sh ] && . /etc/sfa/sfa_config.sh
17 # source function library
18 . /etc/init.d/functions
21 # if key doesnt exist use sfa_componenet_setup to get it
22 if [ ! -f /var/lib/sfa/server.key ]; then
23 /usr/bin/sfa_component_setup.py -k
28 echo -n $"Starting SFA: "
30 if [ "$SFA_CM_ENABLED" ]; then
32 # make sure server key (nodes private key) exists first
34 /usr/bin/sfa-start.py -c -d $OPTIONS
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa
44 echo -n $"Shutting down SFA: "
49 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sfa
66 if [ -f /var/lock/subsys/sfa ]; then
76 echo $"Usage: $0 {start|stop|restart|condrestart|status}"