diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/apt-cacher-ng/files/logrotate |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/apt-cacher-ng/files/logrotate')
-rw-r--r-- | net-misc/apt-cacher-ng/files/logrotate | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/apt-cacher-ng/files/logrotate b/net-misc/apt-cacher-ng/files/logrotate new file mode 100644 index 000000000000..330f2b6b6616 --- /dev/null +++ b/net-misc/apt-cacher-ng/files/logrotate @@ -0,0 +1,15 @@ +/var/log/apt-cacher-ng/*.log { + size 10M + missingok + rotate 12 + compress + delaycompress + notifempty + create + postrotate + if [ -s /var/run/apt-cacher-ng/apt-cacher-ng.pid ] ; then + kill -s USR1 "$(cat /var/run/apt-cacher-ng/apt-cacher-ng.pid)" + fi + endscript +} + |