Ahtenus / minecraft-init

Init script for minecraft and bukkit servers
404 stars 125 forks source link

Log rotation ignores settings #150

Open dgarth opened 11 years ago

dgarth commented 11 years ago

My config is as follows:

LOGPATH="/home/${USERNAME}/backup/logs"
# GZIPLOGS=YES
LOGFILEAPPEND="logfile_"

Nevertheless the logs folder is full of archived and compressed logs with a naming scheme of logs_YYYY-MM-DD.tar.bz2. Inside an archive the whole folder structure is preserved, meaning I get home/minecraft/backup/logs/server.log where ever I decompress it. I just want the logs to be saved in cleartext in the folder with a date in the filename, how would I do that?

jgehrcke commented 10 years ago

The config is out of sync with the code. GZIPLOG is not used in the init script at all:

$ grep -HR "GZIPLOGS" .
./config:#GZIPLOGS=YES
./config.example:GZIPLOGS=YES