projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bbf168
)
Fix web server logrotate for Ubuntu 16.04
author
Tom Hughes
<tom@compton.nu>
Mon, 27 Jun 2016 07:23:04 +0000
(08:23 +0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 27 Jun 2016 07:23:04 +0000
(08:23 +0100)
cookbooks/web/templates/default/logrotate.apache.erb
patch
|
blob
|
history
diff --git
a/cookbooks/web/templates/default/logrotate.apache.erb
b/cookbooks/web/templates/default/logrotate.apache.erb
index 15e5290012670e4e4e598f2892e7d891ddc3f954..8d64879f573dc9fc826867d708a7660232078e00 100644
(file)
--- a/
cookbooks/web/templates/default/logrotate.apache.erb
+++ b/
cookbooks/web/templates/default/logrotate.apache.erb
@@
-10,7
+10,7
@@
create 640 root adm
sharedscripts
postrotate
- /
usr/bin/service
apache2 reload > /dev/null
+ /
etc/init.d/
apache2 reload > /dev/null
/usr/bin/rsync /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
endscript
}