X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fomf-slicemgr;h=77e3ffc4a4cecffa2fc191acac99eafd0f6e4555;hb=0d8f952a33f5727ad6122b104de2559f22ef6a2e;hp=985cd6d985bea921849e1ca2264c62d7abc8481b;hpb=1cda98c34563ed3e90a9d2219730ae81f9705dc6;p=plcapi.git diff --git a/plc.d/omf-slicemgr b/plc.d/omf-slicemgr index 985cd6d..77e3ffc 100755 --- a/plc.d/omf-slicemgr +++ b/plc.d/omf-slicemgr @@ -23,10 +23,24 @@ case "$1" in MESSAGE=$"Starting the OMF Slice Manager" dialog "$MESSAGE" - daemon /usr/bin/omf-slicemgr.py + daemon /usr/bin/omf_slicemgr.py & result "$MESSAGE" ;; + + stop) + if [ "$PLC_OMF_ENABLED" != "1" ] ; then + exit 0 + fi + + MESSAGE=$"Stopping the OMF Slice Manager" + dialog "$MESSAGE" + + killproc omf_slicemgr.py + + result "$MESSAGE" + ;; + esac exit $ERRORS