Externalize supervisor stuff from Partition.install()

parent 4896e97b
...@@ -471,12 +471,18 @@ class Partition(object): ...@@ -471,12 +471,18 @@ class Partition(object):
utils.launchBuildout(path=self.instance_path, utils.launchBuildout(path=self.instance_path,
buildout_binary=buildout_binary, buildout_binary=buildout_binary,
logger=self.logger) logger=self.logger)
# Generates supervisord configuration file from template self.generateSupervisorConfigurationFile()
self.logger.info("Generating supervisord config file from template...")
# check if CP/etc/run exists and it is a directory
# iterate over each file in CP/etc/run def generateSupervisorConfigurationFile(self):
# iterate over each file in CP/etc/service adding WatchdogID to their name """
# if at least one is not 0o750 raise -- partition has something funny Generates supervisord configuration file from template.
check if CP/etc/run exists and it is a directory
iterate over each file in CP/etc/run
iterate over each file in CP/etc/service adding WatchdogID to their name
if at least one is not 0o750 raise -- partition has something funny
"""
runner_list = [] runner_list = []
service_list = [] service_list = []
if os.path.exists(self.run_path): if os.path.exists(self.run_path):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment