:start
:stop
:restart
:reload
:enable
:disable
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 |
nginx_service 'nginx' do
action :enable
delayed_action :start
end
nginx_service 'nginx' do
config_test false
action :enable
delayed_action :start
end