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

Method stopService

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

Source from the content-addressed store, hash-verified

178 return False
179
180 def stopService(self, servicename,force=False):
181 if self.isServiceRunning(servicename) or force:
182 return bash("service " + servicename +" stop").isSuccess()
183
184 return True
185 def disableService(self, servicename):
186 result = self.stopService(servicename)
187 bash("chkconfig --del " + servicename)

Callers 15

disableServiceMethod · 0.95
configMethod · 0.45
configMethod · 0.45
configMethod · 0.45
configMethod · 0.45
configMethod · 0.45
restoreMethod · 0.45
configMethod · 0.45
configMethod · 0.45
configMethod · 0.45
configMethod · 0.45
restoreMethod · 0.45

Calls 3

isServiceRunningMethod · 0.95
bashClass · 0.85
isSuccessMethod · 0.65

Tested by

no test coverage detected