From 52efcc368cd9d07e87bbd27e74ac85d64538835a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 10 Mar 2010 22:42:23 +0000 Subject: [PATCH] start/stop omf-slicemgr properly --- omf/omf-slicemgr.py | 2 +- plc.d/omf-slicemgr | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/omf/omf-slicemgr.py b/omf/omf-slicemgr.py index 0589aab..24cf701 100644 --- a/omf/omf-slicemgr.py +++ b/omf/omf-slicemgr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Baris Metin import os diff --git a/plc.d/omf-slicemgr b/plc.d/omf-slicemgr index cf1aecd..8f4435b 100755 --- a/plc.d/omf-slicemgr +++ b/plc.d/omf-slicemgr @@ -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 -- 2.43.0