-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Debian: /var/run/consul/consul.pid user affinity inconsistent #120
Comments
The PR implements the second solution, since NGINX does it this way, too. It also fixes a status check bug. |
Couldn't you instead remove |
Yeah, we could do that. I was just inspired by the nginx file on my debian machine, which looks almost the same as the current puppet-consul debian file. https://github.com/solarkennedy/puppet-consul/blob/master/templates/consul.debian.erb#L21 Do you want me to implement the other solution instead? |
I don't really have strong opinions either way. |
Nginx script Debine Weezy e.g.: https://blog.luukhendriks.eu/2013/05/17/nginx-initscript-debian-7.html
|
We could actually implement a real reload command, sending HUP, which is missing in the current solution |
Real reload would be nice too, but doesn't necessarily have to happen in the same PR. |
Yes. One should not highjack this on here. :) |
Please review again. Added CHANGELOG |
Merged! Thanks for the PR. |
The init template for Debian uses
start-stop-daemon
to create a pidfile owned by the daemon userroot
. https://github.com/solarkennedy/puppet-consul/blob/master/templates/consul.debian.erb#L57But:
It passes the
-pid-file
parameter along to theconsul agent
. See: https://github.com/solarkennedy/puppet-consul/blob/master/templates/consul.debian.erb#L21This causes the launch of the consul agent to fail, since it cannot write to /var/run/consul/consul.pid using the user:group =>
consul:consul
There are 2 solutions:
/var/run/consul/consul.pid
writeable by theconsul
user, which runsconsul agent
start-stop-daemon
write the pid to/var/run/consul/consul.pid
(this means removing the pid-file param fromconsul agent
The text was updated successfully, but these errors were encountered: