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

Method startService

python/lib/cloudutils/utilities.py:225–227  ·  view source on GitHub ↗
(self, servicename,force=True)

Source from the content-addressed store, hash-verified

223 return result
224
225 def startService(self, servicename,force=True):
226 if not self.isServiceRunning(servicename) or force:
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")

Callers 1

enableServiceMethod · 0.95

Calls 3

isServiceRunningMethod · 0.95
bashClass · 0.85
isSuccessMethod · 0.65

Tested by

no test coverage detected