
| Key: |
COOK-126
|
| Type: |
Improvement
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Joshua Timberman
|
| Votes: |
1
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
The apache2 init script doesn't consistently support status argument, but the apache2ctl command does.
|
|
Description
|
The apache2 init script doesn't consistently support status argument, but the apache2ctl command does. |
Show » |
Sort Order:
|
service "apache2" do
case node[:platform]
when "centos","redhat","fedora","suse"
service_name "httpd"
restart_command "/sbin/service httpd restart && sleep 1"
reload_command "/sbin/service httpd reload && sleep 1"
when "debian","ubuntu"
service_name "apache2"
end
case node[:platform]
when "ubuntu"
status_command "/usr/sbin/apache2ctl status" if node[:platform_version] == '8.04'
end
supports value_for_platform(
"debian" => { "4.0" => [ :restart, :reload ], "default" => [ :restart, :reload, :status ] },
"ubuntu" => { "8.04" => [ :restart, :reload ], "default" => [ :restart, :reload, :status ] },
"centos" => { "default" => [ :restart, :reload, :status ] },
"redhat" => { "default" => [ :restart, :reload, :status ] },
"fedora" => { "default" => [ :restart, :reload, :status ] },
"default" => { "default" => [:restart, :reload ] }
)
action :enable
end