start/stop omf-slicemgr properly
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 10 Mar 2010 22:42:23 +0000 (22:42 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 10 Mar 2010 22:42:23 +0000 (22:42 +0000)
omf/omf-slicemgr.py
plc.d/omf-slicemgr

index 0589aab..24cf701 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
 # Baris Metin <tmetin@sophia.inria.fr>
 
 import os
index cf1aecd..8f4435b 100755 (executable)
@@ -27,6 +27,20 @@ case "$1" in
 
        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