Skip to content

Failed to reload nginx on CentOS7 #84

@waura

Description

@waura

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions