[ejabberd] mod_muc_log rotation

Jesse Thompson jesse.thompson at doit.wisc.edu
Thu Jul 7 18:24:09 MSD 2011


On 7/6/11 3:43 PM, Daniel Dormont wrote:
> Hi folks,
>
> Does anyone know if there is a rotation capability on mod_muc_log? For example, suppose I only want to keep logs for seven days or something like that. Is that an available feature? Or do I have to do something clever with cron and some fancy shell scripts?

cron.  no need to be clever.

0 0 * * * /bin/find /path/to/muclogs -mtime +7 -exec /bin/rm -rf {} \; > 
/dev/null 2>&1

Jesse

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 9443 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110707/503e878b/attachment.bin>


More information about the ejabberd mailing list