]> git.pld-linux.org Git - packages/ejabberd.git/blob - ejabberd.logrotate
- up to 18.12.1
[packages/ejabberd.git] / ejabberd.logrotate
1 /var/log/ejabberd/*.log {
2         weekly
3         olddir /var/log/archive/ejabberd
4         su jabber jabber
5         nocreate
6         sharedscripts
7         postrotate
8                 /bin/su -s /bin/bash - jabber /usr/sbin/ejabberdctl reopen_log > /dev/null
9                 # ejabberd tries to rename old logs on 'reopen_log'
10                 # in some cases this may leave empty *.0 files
11                 for f in /var/log/ejabberd/*.0 ; do
12                         [ -s "$f" ] || rm -f "$f"
13                 done
14         endscript
15 }
This page took 0.065175 seconds and 3 git commands to generate.