From: Daniel Hokka Zakrisson Date: Fri, 19 Feb 2010 17:36:25 +0000 (+0000) Subject: Enable/disable the initscript as well. X-Git-Tag: NodeManager-2.0-3~12 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=4e1754be87204681ad70ab4caaf2fb8732580bf2 Enable/disable the initscript as well. --- diff --git a/plugins/codemux.py b/plugins/codemux.py index 65623f3..7c24f8e 100644 --- a/plugins/codemux.py +++ b/plugins/codemux.py @@ -155,9 +155,11 @@ def startService(): if not isRunning(): logger.log("codemux: Starting codemux service") logger.log_call(["/etc/init.d/codemux", "start", ]) + logger.log_call(["/sbin/chkconfig", "codemux", "on"]) def stopService(): if isRunning(): logger.log("codemux: Stopping codemux service") logger.log_call(["/etc/init.d/codemux", "stop", ]) + logger.log_call(["/sbin/chkconfig", "codemux", "off"])