Enable/disable the initscript as well.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Fri, 19 Feb 2010 17:36:25 +0000 (17:36 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Fri, 19 Feb 2010 17:36:25 +0000 (17:36 +0000)
plugins/codemux.py

index 65623f3..7c24f8e 100644 (file)
@@ -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"])