-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Search user configuration directory for the configuration file #576
Search user configuration directory for the configuration file #576
Conversation
In the past, the search paths have caused a lot of confusion. Issues relating to the config file search often come up on the tracker. I think there are three issues:
I am unlikely to merge this particular change (#576) because it adds another location to the search, which is probably too long already. It also changes the name of the config file from While I do not want to grow the search list, I have been thinking about merging #414 for a long time because some distributions have already patched Supervisor, and those have been shipping for years. Many users seem to install Supervisor with a distribution package and are surprised loading the config file doesn't work like our documentation describes. For that path, I think it might make sense, even though it grows the search path list. It may be too late to remove paths from the search list. At this point, I am just trying not to make the situation worse. If we could do it again, I would be tempted to have it search I would welcome more thoughts and experiences with the search list. cc @msabramo |
I understand the interest of not-growing the list and I concur that the simpler the config search is, the more usable the application becomes. However, there is an issue with the current list if a non-root user intends to use supervisord: there's no default configuration file:
Those that rely on |
Is that a problem? This pull request and your comment seem to indicate it might be, but this is the first time I can remember that the issue has been raised. I've been running my Supervisor instances as non-root for years using |
Well, it does reduce comfort a bit. Having to specify Another option could, of course, be an environment variable, since that can include either relative or absolute paths, and that satisfies more scenarios. |
I can understand that. I may not be feeling it because I usually interact with it through automation.
I'd like to keep this focused on Supervisor. It does have a bunch of defaults, just not this particular one. Since Supervisor has been around for a long time, and this seems to be the first time this specific issue has been raised, it may not affect that many people. |
There's no real single default if it's not run as root.
Since you don't actually use supervisorctl, then you can't really understand the hassle of specifying a configuration file upon each usage. In order to avoid increasing the list indefinitely, I'd like to propose using an environment variable (maybe
Would this be acceptable if a PR was pushed? |
OK, this is a little out of control now. Since this is just mud-slinging now and nothing productive is coming out of it, I'm going to lock this topic. FTR, I use supervisorctl every day, have been maintaining it for five years, and worked on it for almost another five before that. I have typed the
It's complicated enough without adding environment variables to the search path in my opinion. Since nobody else has chimed in the two months that this discussion has been open, maybe this just isn't that important to most people. |
Several people have now requested letting the config filename be set by a |
This is a incomplete pull request. But I'd like to get some comments on this. I've been toying around with using supervisor to manage daemons in my user session for a light weight desktop (window manager, hoktkey listener, etc). One downside is having to specify the configuration file on the command line, since supervisor doesn't search in the users path.
Again, this is just a springboard PR for comments on the idea. I can add tests and make any changes based on comments, but the idea is there!