Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm currently running a bukkit (minecraft) server which generates a server.log file with all the console messages / errors.

Every now and then I have a plugin (which i need) that crashes and can cause the server.log file size to increase dramatically. I've had it hit 32GB before which used all my disk space.

Is there a way to make it a rolling log (deletes old errors) or be able to limit the file size so it can't go above say 10MB. But the solution needs to not affect how the server runs so it doesn't throw an error when it can't write anymore.

Anyway of doing this with CentOS?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Bukkit has built-in feature for this. Start the server using the --log-limit=X parameter, where X is the maximum log size in number of lines.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.