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

Method startService

python/lib/cloudutils/utilities.py:190–193  ·  view source on GitHub ↗
(self, servicename,force=False)

Source from the content-addressed store, hash-verified

188 return result
189
190 def startService(self, servicename,force=False):
191 if not self.isServiceRunning(servicename) or force:
192 return bash("service " + servicename + " start").isSuccess()
193 return True
194
195 def enableService(self, servicename,forcestart=False):
196 bash("chkconfig --level 2345 " + servicename + " on")

Callers 11

enableServiceMethod · 0.95
restoreMethod · 0.45
restoreMethod · 0.45
restoreMethod · 0.45
configMethod · 0.45
restoreMethod · 0.45
configMethod · 0.45
configMethod · 0.45
restoreMethod · 0.45
configMethod · 0.45
configMethod · 0.45

Calls 3

isServiceRunningMethod · 0.95
bashClass · 0.85
isSuccessMethod · 0.65

Tested by

no test coverage detected