3 # sfa starts sfa service
5 # chkconfig: 2345 61 39
7 # description: starts sfa service
11 [ -f /etc/sfa/sfa_config ] && . /etc/sfa/sfa_config
13 # source function library
14 . /etc/init.d/functions
18 if [ "$SFA_REGISTRY_ENABLED" -eq 1 ]; then
19 action $"SFA Registry" daemon /usr/bin/sfa-server.py -r -d $OPTIONS
22 if [ "$SFA_AGGREGATE_ENABLED" -eq 1 ]; then
23 action $"SFA Aggregate" daemon /usr/bin/sfa-server.py -a -d $OPTIONS
26 if [ "$SFA_SM_ENABLED" -eq 1 ]; then
27 action "SFA SliceMgr" daemon /usr/bin/sfa-server.py -s -d $OPTIONS
30 if [ "$SFA_FLASHPOLICY_ENABLED" -eq 1 ]; then
31 action "Flash Policy Server" daemon /usr/bin/sfa_flashpolicy.py --file="$SFA_FLASHPOLICY_CONFIG_FILE" --port=$SFA_FLASHPOLICY_PORT -d
35 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa-server.py
40 action $"Shutting down SFA" killproc sfa-server.py
43 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sfa-server.py
50 reload) reload force ;;
51 restart) stop; start ;;
53 if [ -f /var/lock/subsys/sfa-server.py ]; then
63 echo $"Usage: $0 {start|stop|reload|restart|condrestart|status}"