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

Method config

python/lib/cloudutils/serviceConfig.py:478–499  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

476 self.serviceName = "Nfs"
477
478 def config(self):
479 try:
480 if not os.path.exists("/etc/nfsmount.conf"):
481 return True
482
483 cfo = configFileOps("/etc/nfsmount.conf")
484 cfo.addEntry("Ac", "False")
485 cfo.addEntry("actimeo", "0")
486 cfo.save()
487
488 self.syscfg.svo.enableService("rpcbind")
489 self.syscfg.svo.stopService("rpcbind")
490 self.syscfg.svo.startService("rpcbind")
491
492 self.syscfg.svo.enableService("nfs")
493 self.syscfg.svo.stopService("nfs")
494 self.syscfg.svo.startService("nfs")
495
496 return True
497 except:
498 logging.debug(formatExceptionInfo())
499 return False
500
501class hostConfig(serviceCfgBase):
502 def __init__(self, syscfg):

Callers

nothing calls this directly

Calls 9

configFileOpsClass · 0.90
formatExceptionInfoFunction · 0.85
debugMethod · 0.80
existsMethod · 0.65
saveMethod · 0.65
enableServiceMethod · 0.65
addEntryMethod · 0.45
stopServiceMethod · 0.45
startServiceMethod · 0.45

Tested by

no test coverage detected