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

sysv init script not compatible with * in LS_CONF_DIR paths #4736

Closed
robin13 opened this issue Feb 29, 2016 · 3 comments
Closed

sysv init script not compatible with * in LS_CONF_DIR paths #4736

robin13 opened this issue Feb 29, 2016 · 3 comments
Assignees
Labels

Comments

@robin13
Copy link
Contributor

robin13 commented Feb 29, 2016

If you have e.g. LS_CONF_DIR=/etc/logstash/conf.d/*/*.conf which would be useful for a configuration structure like this:

conf.d/1-inputs/file.conf
conf.d/1-inputs/tcp.conf
conf.d/1-inputs/beats.conf
conf.d/9-outputs/elasticsearch.conf
conf.d/9-outputs/file.conf

Then service logstash restart fails because L139 looks for ${LS_CONF_DIR}/*

Perhaps better first identify if the path already contains globs, and is a directory (not a single file), and only then append the /*?

@jordansissel
Copy link
Contributor

the variable includes DIR which makes me think it's a directory, so having it support wildcards or paths seems unexpected given the name. I am open to supporting what you propose, but I think we need to rename the variable given the meaning will change.

What about renaming it to LS_CONF_PATH ?

Looking towards the future, I would highly recommend you move forward towards more modern service management systems (upstart, systemd, etc) as we will likely be moving away from the older SYSV init script style things eventually.

@jordansissel
Copy link
Contributor

(reminder to myself to file a separate ticket to plot a path to move our rpm/deb packages to systemd)

@untergeek
Copy link
Member

This needs to be re-evaluated by virtue of the fact that LS_CONF_PATH is no longer even used, due to the shift to using logstash.yml as the settings path. While Logstash may yet need to look at directories and/or sub-directories, this is a different world with path.settings.

Also, the SYSV issue has been completely resolved by #5341, which changes startup altogether.

If this is still an issue, please open it again after testing against 5.0 alpha-3, with regards to the path.settings setup. Feel free to reference this issue in that new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants