diff options
author | deva <deva> | 2010-07-05 07:59:06 +0000 |
---|---|---|
committer | deva <deva> | 2010-07-05 07:59:06 +0000 |
commit | 8e5658727aa4f2f9f71f44e1534b1ce21cd542f2 (patch) | |
tree | ef05c5ab0b0e7e3a019282d8b4ab48840686b807 /server/gentoo/logrotate.d | |
parent | 7fc21b0272ad1e514c4461d10f75e1a79199f4c8 (diff) |
Add system startup/logrotate scripts. Rename conf to conf.example to prevent conf file overwriting.
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 +} |