commit | 9e63b09e0965ddf314f242bea18b899c2cd00844 | [log] [tgz] |
---|---|---|
author | Filip Pytloun <filip@pytloun.cz> | Fri Jun 23 15:23:32 2017 +0200 |
committer | Filip Pytloun <filip@pytloun.cz> | Fri Jun 23 15:23:32 2017 +0200 |
tree | 513096134cca3343e356950ffb985d8a85214e57 | |
parent | b170b11cf2c8d8740734dfcf35d703f026d7c07e [diff] |
Add logrotate support
diff --git a/horizon/meta/logrotate.yml b/horizon/meta/logrotate.yml new file mode 100644 index 0000000..6abdeb3 --- /dev/null +++ b/horizon/meta/logrotate.yml
@@ -0,0 +1,14 @@ +job: + horizon: + - files: + - /var/log/horizon/*.log + options: + - compress + - delaycompress + - missingok + - notifempty + - rotate: 10 + - daily + - minsize: 20M + - maxsize: 500M + - postrotate: "if /etc/init.d/apache2 status > /dev/null; then /etc/init.d/apache2 reload > /dev/null; fi"