media-monitor / log rotation
  • Hello,

    i'm wondering how to change log rotation for media-monitor .(Debian Squeeze)
    since log file are quite big.
    In logrotate.d there is an "airtime-liquidsoap" script
    i wish to made one for media-monitor based on it :

     is it correct (it will works ?) :

    /var/log/airtime/media-monitor/*.log {
      compress
      rotate 10
      size 500k
      missingok
      notifempty
      sharedscripts
      postrotate
        start-stop-daemon --stop --signal USR1 --quiet --pidfile /var/run/airtime-media-monitor.pid
      endscript
    }
  • 2 Comments sorted by
  • You don't need to do that. Just edit this file to change when the log is rotated

    /usr/lib/airtime/media-monitor/logging.cfg

    The default size is 10 MB.
    Airtime Pro Hosting: http://airtime.pro
  • :)  great 
    (10Mb by default, it's really too much)

    Thank Martin