Handling log-files¶
There are two programs that create a lot of logging data: icecast
and musicdb server
itself.
To handle those log files it is recommended to make use of logrotate .
The following example configuration contains settings for all three.
The variable DATADIR
points to the directory where all MusicDB relevant data and configurations are stored.
DATADIR/debuglog.ansi {
su MDBUSER MDBGROUP
compress
weekly
missingok
rotate 4
notifempty
copytruncate
}
DATADIR/icecast/log/*log {
compress
weekly
missingok
rotate 4
notifempty
sharedscripts
postrotate
endscript
}
You may have to adapt the paths to your setup. I run MusicDB under the user/group musicdb.
So, you may also rename the su
section for MusicDB.