Skip to content
Browse files

[COOK-3919] - Move the default pidfile for apache2 on Ubuntu 13.10 or…

… greater

Signed-off-by: Sean OMeara <someara@opscode.com>
  • Loading branch information...
1 parent e175c26 commit 83c2f46dbae601aab5b6b5a6f583e55d6d90eeff Caleb Land committed with someara
Showing with 5 additions and 1 deletion.
  1. +5 −1 attributes/default.rb
View
6 attributes/default.rb
@@ -57,7 +57,11 @@
default['apache']['cgibin_dir'] = '/usr/lib/cgi-bin'
default['apache']['icondir'] = '/usr/share/apache2/icons'
default['apache']['cache_dir'] = '/var/cache/apache2'
- default['apache']['pid_file'] = '/var/run/apache2.pid'
+ default['apache']['pid_file'] = if node['platform'] == 'ubuntu' && node['platform_version'].to_f >= 13.10
+ '/var/run/apache2/apache2.pid'
+ else
+ '/var/run/apache2.pid'
+ end
default['apache']['lib_dir'] = '/usr/lib/apache2'
default['apache']['libexecdir'] = "#{node['apache']['lib_dir']}/modules"
default['apache']['default_site_enabled'] = false

0 comments on commit 83c2f46

Please sign in to comment.
Something went wrong with that request. Please try again.