]> git.openstreetmap.org Git - chef.git/commitdiff
oxidized: use runtime directory for systemd
authorGrant Slater <github@firefishy.com>
Sun, 2 Oct 2022 00:11:52 +0000 (01:11 +0100)
committerGrant Slater <github@firefishy.com>
Sun, 2 Oct 2022 00:11:52 +0000 (01:11 +0100)
cookbooks/oxidized/recipes/default.rb

index 280efad594e0d997fd0bd2d8a8ed61e3eb73ce41..6d5486d498980bd90da1fcd1c2fa987101882870 100644 (file)
@@ -141,6 +141,7 @@ systemd_service "oxidized" do
   after "network.target"
   user "oxidized"
   working_directory "/opt/oxidized/daemon"
   after "network.target"
   user "oxidized"
   working_directory "/opt/oxidized/daemon"
+  runtime_directory "oxidized"
   exec_start "#{node[:ruby][:bundle]} exec oxidized"
   environment "OXIDIZED_HOME" => "/etc/oxidized",
               "OXIDIZED_LOGS" => "/var/log/oxidized"
   exec_start "#{node[:ruby][:bundle]} exec oxidized"
   environment "OXIDIZED_HOME" => "/etc/oxidized",
               "OXIDIZED_LOGS" => "/var/log/oxidized"