Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories #1

Merged
merged 5 commits into from
Jan 21, 2021
Merged

Directories #1

merged 5 commits into from
Jan 21, 2021

Conversation

willmcgugan
Copy link
Owner

Adds [directory:x] sections. For context see my comment on Supervisor#120

@@ -520,6 +519,7 @@ def realize(self, *arg, **kw):
self.serverurl = None

self.server_configs = sconfigs = section.server_configs
self.directories = section.directories
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so section would be configparser section which defaults to None if not present ?

% (self.name, self.path)
)
else:
if self.create:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the syntax support chowning the directory? if the directory is supposed to be created in /tmp then it will suffice but otherwise it may result with a permission error. had this be created by root then the config could also have a syntax for chown'ing the created directory

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe is should. There was a comment at the end of Supervisor#120 that suggested it didn't need to change the ownership.

@willmcgugan willmcgugan merged commit d2550cf into master Jan 21, 2021
@willmcgugan willmcgugan deleted the directories branch January 21, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants