]> git.pld-linux.org Git - packages/ejabberd.git/blame - ejabberd.logrotate
- rel 3; stop_kindly is too annoying for users
[packages/ejabberd.git] / ejabberd.logrotate
CommitLineData
f20002e6
JK
1/var/log/ejabberd/*.log {
2 weekly
3 olddir /var/log/archive/ejabberd
4 su jabber jabber
5 nocreate
6 sharedscripts
7 postrotate
2722a389 8 /bin/su -s /bin/sh - jabber /usr/sbin/ejabberdctl reopen_log
f20002e6
JK
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.093284 seconds and 4 git commands to generate.