Treat php-fpm as an upstart service on 14.04
authorTom Hughes <tom@compton.nu>
Tue, 3 Jun 2014 18:22:13 +0000 (19:22 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 3 Jun 2014 18:22:13 +0000 (19:22 +0100)
cookbooks/nominatim/recipes/default.rb

index ba010b0d6c5793a59f50bd396a1ef94f3a0765e3..0a0640fd8332cb34c7b615be73ef20ab840e7193 100644 (file)
@@ -48,6 +48,9 @@ database_name = node[:nominatim][:database][:dbname]
 postgis_version = node[:nominatim][:database][:postgis]
 
 service "php5-fpm" do
+  if node[:lsb][:release].to_f >= 14.04
+    provider Chef::Provider::Service::Upstart
+  end
   action [ :enable, :start ]
   supports :status => true, :restart => true, :reload => true
 end