summarylogtreecommitdiffstats
path: root/logrotate
diff options
context:
space:
mode:
authorAllen Zhong2022-04-01 12:08:25 +0800
committerAllen Zhong2022-04-15 17:34:32 +0800
commit9ac0541a2c2b43585cee58b1f271246660a90651 (patch)
tree6f6c59f2408164ec4f0ee3028bbd50c4a7eb21b0 /logrotate
parentffabc5191f4f01449f11d2bc5f639ec4fee2a623 (diff)
downloadaur-9ac0541a2c2b43585cee58b1f271246660a90651.tar.gz
add logrotate
Diffstat (limited to 'logrotate')
-rw-r--r--logrotate13
1 files changed, 13 insertions, 0 deletions
diff --git a/logrotate b/logrotate
new file mode 100644
index 000000000000..7d8389ad4bcf
--- /dev/null
+++ b/logrotate
@@ -0,0 +1,13 @@
+/var/log/hockeypuck/*log {
+ daily
+ missingok
+ create 640 hockeypuck log
+ rotate 7
+ compress
+ delaycompress
+ notifempty
+ size 50M
+ postrotate
+ /usr/bin/systemctl reload hockeypuck
+ endscript
+}