diff options
author | Sergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com> | 2009-04-12 14:17:29 +0000 |
---|---|---|
committer | Sergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com> | 2009-04-12 14:17:29 +0000 |
commit | 081ed294887afaacf80de24f6f4e1532bdc8974c (patch) | |
tree | 8a60106b652babde997f9ca71874c0f9138974c6 /net-misc/apt-cacher-ng/files/logrotate | |
parent | sys-fs/aufs: Remove \n (diff) | |
download | sunrise-081ed294887afaacf80de24f6f4e1532bdc8974c.tar.gz sunrise-081ed294887afaacf80de24f6f4e1532bdc8974c.tar.bz2 sunrise-081ed294887afaacf80de24f6f4e1532bdc8974c.zip |
Ebuild for bug 265840. Thanks to pva and Tommy.
svn path=/sunrise/; revision=8276
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 000000000..330f2b6b6 --- /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 +} + |