capistrano-plugins / capistrano-unicorn-nginx

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

Failed to reload nginx on CentOS7 #84

Open waura opened 8 years ago

waura commented 8 years ago

Now run "sudo /etc/init.d/nginx reload" when capistrano-unicorn-nginx reload nginx. but this command was failed on CentOS7. because "/etc/init.d/nginx" is not exist on CentOS7.

I want to run this command for nginx reload. sudo service nginx restart

Can I modified this reload task ?

  task :reload do
    on roles :web do
      sudo nginx_service_path, 'reload'
    end
  end
waura commented 8 years ago

I fixed this issue. I merged these changes. https://github.com/capistrano-plugins/capistrano-unicorn-nginx/pull/45 https://github.com/capistrano-plugins/capistrano-unicorn-nginx/pull/85