summaryrefslogtreecommitdiff
path: root/server/gentoo/logrotate.d
diff options
context:
space:
mode:
authordeva <deva>2010-07-05 07:59:06 +0000
committerdeva <deva>2010-07-05 07:59:06 +0000
commit8e5658727aa4f2f9f71f44e1534b1ce21cd542f2 (patch)
treeef05c5ab0b0e7e3a019282d8b4ab48840686b807 /server/gentoo/logrotate.d
parent7fc21b0272ad1e514c4461d10f75e1a79199f4c8 (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.am7
-rw-r--r--server/gentoo/logrotate.d/pracrod15
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
+}