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

Function start_service

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

Source from the content-addressed store, hash-verified

248
249
250def start_service(servicename,force=False):
251 # This function is idempotent unless force is True. N number of calls have the same result as N+1 number of calls.
252 if not is_service_running(servicename) or force: service(servicename,"start",stdout=None,stderr=None)
253
254
255def enable_service(servicename,forcestart=False):

Callers 1

enable_serviceFunction · 0.85

Calls 2

is_service_runningFunction · 0.85
serviceFunction · 0.50

Tested by

no test coverage detected