Rotate logs

Bug #1772159 reported by pablo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coturn (Ubuntu)
New
Undecided
Unassigned

Bug Description

By default coturn rotates log but doesn't compress them and doesn't delete old one.
Log files will grow to take all the disk space after days/weeks.

Maybe add something like this:

turnserver.conf
log-file=/var/log/turnserver/turn.log
pidfile=/var/run/turnserver/turnserver.pid

/etc/logrotate.d/example-app
/var/log/turn/*.log {
    daily
    missingok
    rotate 14
    compress
    delaycompress
    notifempty
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/turnserver/turnserver.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.