projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2a38d6
)
Don't complain if the Rails app isn't running
author
Tom Hughes
<tom@compton.nu>
Sun, 29 May 2016 07:51:16 +0000
(08:51 +0100)
committer
Tom Hughes
<tom@compton.nu>
Sun, 29 May 2016 07:51:16 +0000
(08:51 +0100)
cookbooks/web/templates/default/logrotate.web.erb
patch
|
blob
|
history
diff --git
a/cookbooks/web/templates/default/logrotate.web.erb
b/cookbooks/web/templates/default/logrotate.web.erb
index ab906c68878e350be5c5622d5434007477e3a03d..b817621ab28632f1d8be985e26fb450049aee28f 100644
(file)
--- a/
cookbooks/web/templates/default/logrotate.web.erb
+++ b/
cookbooks/web/templates/default/logrotate.web.erb
@@
-11,7
+11,7
@@
sharedscripts
postrotate
<% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
- /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null
+ /usr/bin/passenger-config restart-app
--ignore-app-not-running
<%= node[:web][:base_directory] %>/rails > /dev/null
<% if node[:recipes].include?("logstash::forwarder") -%>
/usr/bin/service logstash-forwarder restart > /dev/null
<% end -%>