Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 948 Bytes

resource_apache2_service.md

File metadata and controls

43 lines (32 loc) · 948 Bytes

apache2_service

Back to resource list

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