Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1006 Bytes

nginx_service.md

File metadata and controls

41 lines (30 loc) · 1006 Bytes

nginx_service

Back to resource list

Actions

  • :start
  • :stop
  • :restart
  • :reload
  • :enable
  • :disable

Properties

Name Type Default Description
service_name String nginx The service name to perform actions upon
config_test True, False true Perform a configuration file test before performing service action

Usage

Example

nginx_service 'nginx' do
  action :enable
  delayed_action :start
end

Example - Skip configuration test

nginx_service 'nginx' do
  config_test false

  action :enable
  delayed_action :start
end