-
-
Notifications
You must be signed in to change notification settings - Fork 806
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
from scatch #292
Comments
I fixed this by including the "nginx::repo" recipe first before the main recipe. |
chef.run_list = [ so just doing this will be fine then? |
This happened to me as well. When nginx is installed from the normal Ubuntu repositores, it comes with pid path set to It causes There are two ways to work around the issue in a clean way:
|
Seems like a fix for this might just be updating this to be:
*edit: well, probably not that general. I ran into this problem as well. The repo fix worked great. I feel like there should be a more straightforward approach/fix to this problem. |
fix from d2b954e should be more generic and support later versions. Any volunteers who want to find out when Ubuntu started to change it? |
@rmoriz Looks like it appeared in 13.04 raring (nginx-common = 1.2.6-1ubuntu3.3). Prior to that, nginx-common <= 1.2.1, used /var/run/nginx.pid. |
I think that this was resolved. If it's still a problem with the current version of the cookbook please reopen with additional details. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
using chef/ubuntu-14.04
issue
when you just do
which is like sudo apt-get install nginx
it spins up nginx on localhost:80
but the nginx.pid is never created
you can find the pid using
ps aux | grep nginx
which in turns leading to
sudo service nginx status
displaying its as not running
or any sudo service nginx cmd
as not working as port 80 is already binded
no default file is made for
/var/www/nginx-default/index.html
more of a annoyance then anything else as i was just trying to get my head around chef and nginx
The text was updated successfully, but these errors were encountered: