X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/dc7c507259804d72756728eb28fadd84adb87ff6..d6901fe86d88bb71438571945ca0886fae925e7e:/cookbooks/tile/recipes/default.rb diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 0a703017c..f8a808d73 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -62,9 +62,23 @@ end package "renderd" +systemd_service "renderd" do + description "Mapnik rendering daemon" + after "postgresql.service" + wants "postgresql.service" + user "www-data" + exec_start "/usr/bin/renderd -f" + standard_error "null" + private_tmp true + private_devices true + private_network true + protect_system "full" + protect_home true + restart "on-failure" +end + service "renderd" do action [:enable, :start] - supports :status => false, :restart => true, :reload => false end directory "/srv/tile.openstreetmap.org/tiles" do