Externalize supervisor stuff from Partition.install()

parent 4896e97b
......@@ -471,12 +471,18 @@ class Partition(object):
utils.launchBuildout(path=self.instance_path,
buildout_binary=buildout_binary,
logger=self.logger)
# Generates supervisord configuration file from template
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
# 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
self.generateSupervisorConfigurationFile()
def generateSupervisorConfigurationFile(self):
"""
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 = []
service_list = []
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