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

Method stopService

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

Source from the content-addressed store, hash-verified

214 return False
215
216 def stopService(self, servicename,force=True):
217 if self.isServiceRunning(servicename) or force:
218 return bash("sudo /usr/sbin/service " + servicename +" stop").isSuccess()
219
220 def disableService(self, servicename):
221 result = self.stopService(servicename)

Callers 1

disableServiceMethod · 0.95

Calls 3

isServiceRunningMethod · 0.95
bashClass · 0.85
isSuccessMethod · 0.65

Tested by

no test coverage detected