Public bug reported:

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
}

** Affects: coturn (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1772159

Title:
  Rotate logs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coturn/+bug/1772159/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to