rotating cruisecontrol.log
I'm running a very simple implementation of CruiseControl, doing a build every half hour. My cruisecontrol.log is filling up and I'm looking into some way of rotating that log file. Not sure how to proceed.
I'm reading about logrotate and not sure if that is the appropriate tool to use. Docs refer to logs under /var/log.
I run cruisecontrol as me, not root. My log file (cruisecontrol.log) is in my own build directory, which I put under /opt. It's owned by me, not root. I can write into the directory because I belong to its group. Should I continue to try and figure out how to configure logrotate or look into something else? I'm running Ubuntu Dapper.
What I want to do is copy and compress the current cruisecontrol.log, start up a new one, and then delete compressed versions that are older than a week or so.
Advice is very much appreaciated. Thanks.
-ted
|