From: Barış Metin Date: Wed, 10 Mar 2010 22:42:23 +0000 (+0000) Subject: start/stop omf-slicemgr properly X-Git-Tag: PLCAPI-5.0-3^2~16 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=52efcc368cd9d07e87bbd27e74ac85d64538835a start/stop omf-slicemgr properly --- 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