git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
we'll need to import omf_slicemgr
[plcapi.git]
/
plc.d
/
omf-slicemgr
diff --git
a/plc.d/omf-slicemgr
b/plc.d/omf-slicemgr
index
985cd6d
..
77e3ffc
100755
(executable)
--- a/
plc.d/omf-slicemgr
+++ b/
plc.d/omf-slicemgr
@@
-23,10
+23,24
@@
case "$1" in
MESSAGE=$"Starting the OMF Slice Manager"
dialog "$MESSAGE"
MESSAGE=$"Starting the OMF Slice Manager"
dialog "$MESSAGE"
- daemon /usr/bin/omf
-slicemgr.py
+ daemon /usr/bin/omf
_slicemgr.py &
result "$MESSAGE"
;;
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
esac
exit $ERRORS