apache2_service
Actions
:start
:stop
:restart
:reload
:enable
:disable
Properties
Name | Type | Default | Description |
---|---|---|---|
service_name | String | apache_platform_service_name | Service name to perform actions for |
delay_start | True, False | true | Delay service start until end of run |
Examples
apache2_service 'default' do
action [:enable, :start]
end
Example - using notifications
apache2_install 'default' do
notifies :restart, 'apache2_service[default]'
end
apache2_default_site 'default' do
notifies :reload, 'apache2_service[default]'
end
apache2_service 'default' do
action [:enable, :start]
end