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

Function disable_service

python/lib/cloud_utils.py:241–247  ·  view source on GitHub ↗
(servicename)

Source from the content-addressed store, hash-verified

239
240
241def disable_service(servicename):
242 # Stops AND disables the service
243 stop_service(servicename)
244 if distro is Ubuntu:
245 updatercd("-f",servicename,"remove",stdout=None,stderr=None)
246 else:
247 chkconfig("--del",servicename,stdout=None,stderr=None)
248
249
250def start_service(servicename,force=False):

Callers

nothing calls this directly

Calls 1

stop_serviceFunction · 0.85

Tested by

no test coverage detected