-
Notifications
You must be signed in to change notification settings - Fork 30
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
custom pidfile causing restart to fail #72
Comments
Pinging @denisbr I managed to reproduce it, but it was not what I expected. |
Does the varnish use have sufficient privileges on the /run directory? |
Also, could you dump the complete resulting /etc/default/varnish? |
Complete /etc/default/varnish:
|
/run/varnishd.pid is actually the default pid file. @denisbr This might not even be an issue with the packaging. Should I reopen an issue at the varnish repository? https://github.com/varnishcache/varnish-cache |
This is definitely not a varnish-cache issue, and while it is caused by packaging and the initscripts, it's not really a bug per-se. The issue is that the initscript has it's own pidfile handling: If you want to use an alternative pidfile path / filename, the correct way to do this in debian is to add a
This will override the predefined PIDFILE in the initscript, and make all interaction with the script work as expected. |
@denisbr
Edit 2: You are right, nevermind. |
@mgla I did the work to test all scenarios that I mentioned in local environments before closing. |
@denisbr You were absolutely right. I believieve this can be closed. |
Thanks for confirming, leaving the issue closed :) |
Steps to reproduce:
Fire up a new Ubuntu 14.04 instance (I used an AWS Ubuntu image):
Expected behavior
Clean restart
Actual behavior
Additional details:
The sed just adds the -P parameter to /etc/default/varnish:
Took me a while to track it down. I recently opened this report: #71 but was wrong in my assessment.
The text was updated successfully, but these errors were encountered: