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

fix systemd unit file hardcoded stats.js and config paths #52

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

eyablonowitz
Copy link
Contributor

These are parameterized for the init provider but hardcoded for systemd. This broke on our Debian 8 hosts which use /usr/lib/node_modules rather than /usr/local/lib/node_modules.

The paths were already correct in /etc/default/statsd which the module generates from statsd-defaults.erb so I just used it as a Systemd Environmentfile. This is probably not the most portable fix (e.g. I don't think it will work for RHEL-, but these are currently not using systemd anyway) but it seems better than hardcoding?

@dansajner
Copy link

@ericy-jana I just submitted #53 because I have similar needs, but with RHEL. My changes include what you have proposed here as well.

Copy link
Owner

@jdowning jdowning left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@jdowning jdowning merged commit 30659ff into jdowning:master Dec 18, 2017
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.

3 participants