summaryrefslogtreecommitdiffstats
path: root/main/dansguardian/dansguardian.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-21 07:15:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-21 07:15:49 +0000
commitc95c7923ee7150cc152ab8ed72544eded4cfdff4 (patch)
tree7d30dd8882921abf29e4c68510623065cefda6c2 /main/dansguardian/dansguardian.logrotate
parent600c274d15c2a5124895c771b1e962693267b8ae (diff)
downloadaports-c95c7923ee7150cc152ab8ed72544eded4cfdff4.tar.bz2
aports-c95c7923ee7150cc152ab8ed72544eded4cfdff4.tar.xz
main/dansguardian: provide a logrotate script
fixes #84
Diffstat (limited to 'main/dansguardian/dansguardian.logrotate')
-rw-r--r--main/dansguardian/dansguardian.logrotate15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/dansguardian/dansguardian.logrotate b/main/dansguardian/dansguardian.logrotate
new file mode 100644
index 000000000..001d95545
--- /dev/null
+++ b/main/dansguardian/dansguardian.logrotate
@@ -0,0 +1,15 @@
+/var/log/dansguardian/*.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ nocreate
+ nocopy
+ nocopytruncate
+ compress
+
+ postrotate
+ /usr/sbin/dansguardian -r
+ endscript
+}
+