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
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 ?