summaryrefslogtreecommitdiff
path: root/net-im/ejabberd/files/ejabberd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/ejabberd/files/ejabberd.logrotate')
-rw-r--r--net-im/ejabberd/files/ejabberd.logrotate13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-im/ejabberd/files/ejabberd.logrotate b/net-im/ejabberd/files/ejabberd.logrotate
new file mode 100644
index 0000000..4f32472
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd.logrotate
@@ -0,0 +1,13 @@
+/var/log/jabber/*.log {
+ su jabber jabber
+ weekly
+ rotate 4
+ missingok
+ nocreate
+ sharedscripts
+ notifempty
+ compress
+ postrotate
+ /usr/sbin/ejabberdctl reopen-log > /dev/null 2>&1 || true
+ endscript
+}