summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com>2009-04-12 14:17:29 +0000
committerSergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com>2009-04-12 14:17:29 +0000
commit081ed294887afaacf80de24f6f4e1532bdc8974c (patch)
tree8a60106b652babde997f9ca71874c0f9138974c6 /net-misc/apt-cacher-ng/files/logrotate
parentsys-fs/aufs: Remove \n (diff)
downloadsunrise-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/logrotate15
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
+}
+