X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fomf-slicemgr;h=e6de42f2c0c08f85c99f1ba40d461f1615b3e8fe;hb=f8c9967b0ba08726cca5a5783e62bc50d307374c;hp=cf1aecdd99acf3d92a5a01aebc421069693a5707;hpb=765d57b8d71cbd8a662f475f9367d1aaf31ccd35;p=plcapi.git diff --git a/plc.d/omf-slicemgr b/plc.d/omf-slicemgr index cf1aecd..e6de42f 100755 --- a/plc.d/omf-slicemgr +++ b/plc.d/omf-slicemgr @@ -1,6 +1,4 @@ #!/bin/bash -# $Id$ -# $URL$ # # priority: 800 # @@ -23,10 +21,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