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

Function stop_service

python/lib/cloud_utils.py:236–238  ·  view source on GitHub ↗
(servicename,force=False)

Source from the content-addressed store, hash-verified

234
235
236def stop_service(servicename,force=False):
237 # This function is idempotent. N number of calls have the same result as N+1 number of calls.
238 if is_service_running(servicename) or force: service(servicename,"stop",stdout=None,stderr=None)
239
240
241def disable_service(servicename):

Callers 1

disable_serviceFunction · 0.85

Calls 2

is_service_runningFunction · 0.85
serviceFunction · 0.50

Tested by

no test coverage detected