X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Finit.d%2Fsfa;h=b039c2424a0bfb52e653751b0e449b952e4a0e0e;hb=6c3f5976400b197391f1102e2e5d67a59e8d8069;hp=5e579ee5818a6751372a9db3e6fddf87c43944a2;hpb=486075bb8f430ef053c3dc73c2f3ebc6b066c133;p=sfa.git diff --git a/sfa/init.d/sfa b/sfa/init.d/sfa index 5e579ee5..b039c242 100755 --- a/sfa/init.d/sfa +++ b/sfa/init.d/sfa @@ -2,13 +2,11 @@ # # sfa Wraps PLCAPI into the SFA compliant API # -# chkconfig: 2345 5 99 +# hopefully right after plc +# chkconfig: 2345 61 39 # # description: Wraps PLCAPI into the SFA compliant API # -# $Id$ -# $URL$ -# # Source config [ -f /etc/sfa/sfa_config ] && . /etc/sfa/sfa_config @@ -63,18 +61,22 @@ start() { reload - if [ "$SFA_REGISTRY_ENABLED" ]; then + if [ "$SFA_REGISTRY_ENABLED" -eq 1 ]; then action $"SFA Registry" daemon /usr/bin/sfa-server.py -r -d $OPTIONS fi - if [ "$SFA_AGGREGATE_ENABLED" ]; then + if [ "$SFA_AGGREGATE_ENABLED" -eq 1 ]; then action $"SFA Aggregate" daemon /usr/bin/sfa-server.py -a -d $OPTIONS fi - if [ "$SFA_SM_ENABLED" ]; then + if [ "$SFA_SM_ENABLED" -eq 1 ]; then action "SFA SliceMgr" daemon /usr/bin/sfa-server.py -s -d $OPTIONS fi + if [ "$SFA_FLASHPOLICY_ENABLED" -eq 1 ]; then + action "Flash Policy Server" daemon /usr/bin/sfa_flashpolicy.py --file="$SFA_FLASHPOLICY_CONFIG_FILE" --port=$SFA_FLASHPOLICY_PORT -d + fi + RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa-server.py