Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-23-2007, 12:32 AM   #1
LQ Newbie
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
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.
Old 06-23-2007, 01:10 AM   #2
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
If you put a right path and file name, i think logrotate should do the trick. Logrotates handles root owned files so propably it is runned with root privileges so no matter who owns the file..
Old 06-24-2007, 02:17 PM   #3
LQ Newbie
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thanks -- here's what I did

Well, here's what I did that works. I chose copytruncate over sending a HUP. I didn't try sending a HUP so not sure if it works with CruiseControl.

/path/to/cruisecontrol.log {
size 10M
rotate 5
I also don't know if this is what people do to solve this problem. I don't have contact with others using CruiseControl and the CruiseCOntrol list has been silnet on this issue.



file, log

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cruisecontrol 2.5 can't be accessed from IE explore jimmyjiang Linux - Software 1 01-06-2007 09:53 PM
cruisecontrol 2.5 has file not found problem jimmyjiang Linux - Server 0 12-11-2006 10:06 AM
LXer: Rotating Linux Log Files LXer Syndicated Linux News 0 06-07-2006 06:21 AM
LXer: Eclipse CruiseControl and EPIC Perl debugs LXer Syndicated Linux News 0 02-15-2006 07:01 AM
error rotating /var/log/httpd/access_log joseph_k Linux - General 5 09-22-2001 05:09 PM

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration