Page 1 of 1

Subsonic Log Files (Debian)

PostPosted: Wed Apr 28, 2010 7:59 pm
by wakajazz
How do I cut back on the amount of logging, set max log size or configure log rotation? I see that the logs, /var/subsonic/subsonic.log in particular are growing at an alarming rate. My /var partition only has so much free space :)

Thanks

PostPosted: Wed Aug 10, 2011 10:49 pm
by sparkcom
I use logrotate to rotate the log

create a new file in /etc/logrotate.d/subsnoic with the following content:

Code: Select all

/var/subsonic/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
        /sbin/service subsonic restart > /dev/null 2>/dev/null || true
    endscript
}



I am running subsonic on centos. You need to update the above slightly for other flavour of linux system.

Ben

http://www.sparkcomputing.co.uk[/code]