reviewed comments - no change
[plcapi.git] / plc.d / omf-slicemgr
index cf1aecd..e6de42f 100755 (executable)
@@ -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