Make sure the web pid directory is created at boot
authorTom Hughes <tom@compton.nu>
Sun, 1 Jul 2018 19:42:15 +0000 (20:42 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 1 Jul 2018 19:42:15 +0000 (20:42 +0100)
cookbooks/web/recipes/base.rb

index d82ea20..f2f7c16 100644 (file)
@@ -29,10 +29,11 @@ directory node[:web][:base_directory] do
   mode 0o2775
 end
 
-directory node[:web][:pid_directory] do
+systemd_tmpfile node[:web][:pid_directory] do
+  type "d"
   owner "rails"
   group "rails"
-  mode 0o775
+  mode "0755"
 end
 
 directory node[:web][:log_directory] do