diff options
Diffstat (limited to 'server/gentoo/logrotate.d')
-rw-r--r-- | server/gentoo/logrotate.d/Makefile.am | 7 | ||||
-rw-r--r-- | server/gentoo/logrotate.d/pracrod | 15 |
2 files changed, 22 insertions, 0 deletions
diff --git a/server/gentoo/logrotate.d/Makefile.am b/server/gentoo/logrotate.d/Makefile.am new file mode 100644 index 0000000..64fcb53 --- /dev/null +++ b/server/gentoo/logrotate.d/Makefile.am @@ -0,0 +1,7 @@ +EXTRA_DIST = \ + pracrod + +logrotatedir=${prefix}/etc/logrotate.d + +dist_logrotate_SCRIPTS = \ + pracrod diff --git a/server/gentoo/logrotate.d/pracrod b/server/gentoo/logrotate.d/pracrod new file mode 100644 index 0000000..eab5a82 --- /dev/null +++ b/server/gentoo/logrotate.d/pracrod @@ -0,0 +1,15 @@ +# -*- shell-script -*- +# Copyright 2010 Bent Bisballe Nyeng +# Distributed under the terms of the GNU General Public License v2 + +/var/log/pracrod.log { + weekly + #create 660 root root + notifempty + size 5M + sharedscripts + missingok + postrotate + /bin/kill -s SIGHUP `cat /var/run/pracrod.pid` + endscript +} |