Posted 24 January 2013 - 03:55 PM
I couldn't see a property in the server.properties file so how would I change this behaviour, aside from trying to see if I can write a plugin?
Posted 24 January 2013 - 04:11 PM
As a note, I would've said you could rotate the logs at starting your server using something in your shell like:
*whatever you have at the start* $ NOW=$(date +"%m-%d-%Y") $ FILE=$("$NOW.server.log") cp server.log oldLogs/$FILE rm server.log *java line for minecraft*
but if it's erasing it when you turn it off, then it won't rotate anything at startup.
Quote my post to make sure I see your reply - MCF Hosting Coordinator
Posted 24 January 2013 - 04:25 PM
500 22066 21871 0 19:18 pts/1 00:00:00 grep java
500 25557 1 0 Jan21 ? 00:00:00 SCREEN -dmS minecraft java -Xmx495M -jar craftbukkit.jar someserver.creeperhost.net
500 25558 25557 3 Jan21 pts/0 02:28:22 java -Xmx495M -jar craftbukkit.jar someserver.creeperhost.net
I cannot find the SCREEN command though, the server can be started from a web-based control panel. I suppose I could trigger the server from the cli with a "nohup" but this might mean the web control panel cannot restart the server.
So is it normal behaviour for the server to just leave the logs there, is there any archive / rotation function built into the minecraft server?
Posted 24 January 2013 - 08:34 PM
Posted 25 January 2013 - 09:26 AM
Thanks, I'll look into that.