capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

nginx_service_path not the same #10

Closed liuganggang closed 8 years ago

liuganggang commented 10 years ago

Hi! I have a command with nginx -s reload install form passenger-module and my nginx install at /opt/nginx i don`t got a init.d start script like here.

def nginx_service_path
     '/etc/init.d/nginx'
end

How could i fix it?

bruno- commented 10 years ago

Hi which system are you running? Would symlinking help?

ln -s /opt/nginx /etc/init.d/nginx

Other than that, this could probably be handled by adding another option so that you use it like this:

set :nginx_server_name, '/opt/nginx'
set :nginx_reload_command, '-s reload'
liuganggang commented 10 years ago

Thinks! fix it. ubuntu 12.04 LTS