3 # sfa Wraps PLCAPI into the SFA compliant API
7 # description: Wraps PLCAPI into the SFA compliant API
9 # $Id: sfa 14304 2009-07-06 20:19:51Z thierry $
10 # $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/init.d/sfa $
16 # source function library
17 . /etc/init.d/functions
20 # if key doesnt exist use sfa_componenet_setup to get it
21 if [ ! -f /var/lib/sfa/server.key ]; then
22 /usr/bin/sfa_component_setup.py -k
27 echo -n $"Starting SFA: "
29 if [ "$SFA_CM_ENABLED" ]; then
31 # make sure server key (nodes private key) exists first
33 /usr/bin/sfa-server.py -c -d $OPTIONS
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa
43 echo -n $"Shutting down SFA: "
44 killproc sfa-server.py
48 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sfa
65 if [ -f /var/lock/subsys/sfa ]; then
75 echo $"Usage: $0 {start|stop|restart|condrestart|status}"