MCPcopy Create free account
hub / github.com/apache/cloudstack / enableService

Method enableService

python/lib/cloudutils/utilities.py:229–232  ·  view source on GitHub ↗
(self, servicename,forcestart=True)

Source from the content-addressed store, hash-verified

227 return bash("sudo /usr/sbin/service " + servicename + " start").isSuccess()
228
229 def enableService(self, servicename,forcestart=True):
230 bash("sudo update-rc.d -f " + servicename + " remove")
231 bash("sudo update-rc.d -f " + servicename + " defaults")
232 return self.startService(servicename,force=forcestart)
233
234 def isKVMEnabled(self):
235 return bash("kvm-ok").isSuccess()

Callers

nothing calls this directly

Calls 2

startServiceMethod · 0.95
bashClass · 0.85

Tested by

no test coverage detected