I think there is an example init script in the source somewhere.

Also, I think I posted some improvements on it to the mailing list a
few months back (but I think I was bad and didn't submit a patch).

Anyway, the init script approach works fine for me.

Let me know if you can't find them.

On Mon, Mar 31, 2008 at 11:07 AM, Billy Kimble <[EMAIL PROTECTED]> wrote:
> Guys,
>
>  I recently installed CruiseControl and I love it. So much that I want
>  to run it on its own server to handle all of my building needs. I
>  installed it, added projects, ran it, and everything was groovy. I
>  decided to stick the process in the background via:
>
>  ./cruise start &
>
>  And it put it in the background just fine too. Everything was kosher
>  until I tried logging out of my server. CruiseControl seemed to not
>  want to relinquish control of my SSH connection. I thought perhaps it
>  was a fluke on my connection so I just forcefully disconnected and
>  tried triggering CC to build, which failed with the following message:
>
>  [error] Input/output error
>  [error]   ./script/../config/../builder_plugins/installed/
>  minimal_console_logger.rb:20:in `write'
>  [error]   ./script/../config/../builder_plugins/installed/
>  minimal_console_logger.rb:20:in `puts'
>  [error]   ./script/../config/../builder_plugins/installed/
>  minimal_console_logger.rb:20:in `new_revisions_detected'
>  [error]   ./script/../config/../app/models/project.rb:325:in `send'
>  [error]   ./script/../config/../app/models/project.rb:325:in `notify'
>  [error]   ./script/../config/../app/models/project.rb:323:in `collect'
>  [error]   ./script/../config/../app/models/project.rb:323:in `notify'
>  [error]   ./script/../config/../app/models/project.rb:208:in
>  `build_if_necessary'
>  [error]   ./script/../config/../app/models/polling_scheduler.rb:13:in
>  `run'
>  [error]   ./script/builder:79
>  [error]   ./script/builder:78:in `catch'
>  [error]   ./script/builder:78
>  [error]   script/../config/../cruise:14:in `load'
>  [error]   script/../config/../cruise:14:in `builder'
>  [error]   script/../config/../cruise:68:in `send'
>  [error]   script/../config/../cruise:68
>  [error]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `chdir'
>  [error]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `cd'
>  [error]   script/../config/../cruise:67
>  [error] Input/output error
>  [error]   ./script/../config/../builder_plugins/installed/
>  minimal_console_logger.rb:24:in `write'
>  [error]   ./script/../config/../builder_plugins/installed/
>  minimal_console_logger.rb:24:in `puts'
>  [error]   ./script/../config/../builder_plugins/installed/
>  minimal_console_logger.rb:24:in `build_loop_failed'
>  [error]   ./script/../config/../app/models/project.rb:325:in `send'
>  [error]   ./script/../config/../app/models/project.rb:325:in `notify'
>  [error]   ./script/../config/../app/models/project.rb:323:in `collect'
>  [error]   ./script/../config/../app/models/project.rb:323:in `notify'
>  [error]   ./script/../config/../app/models/project.rb:213:in
>  `build_if_necessary'
>  [error]   ./script/../config/../app/models/polling_scheduler.rb:13:in
>  `run'
>  [error]   ./script/builder:79
>  [error]   ./script/builder:78:in `catch'
>  [error]   ./script/builder:78
>  [error]   script/../config/../cruise:14:in `load'
>  [error]   script/../config/../cruise:14:in `builder'
>  [error]   script/../config/../cruise:68:in `send'
>  [error]   script/../config/../cruise:68
>  [error]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `chdir'
>  [error]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `cd'
>  [error]   script/../config/../cruise:67
>  [error] Input/output error
>  [error]   ./script/../config/../lib/cruise_control/log.rb:35:in `write'
>  [error]   ./script/../config/../lib/cruise_control/log.rb:35:in `puts'
>  [error]   ./script/../config/../lib/cruise_control/log.rb:35:in
>  `method_missing'
>  [error]   ./script/../config/../app/models/project.rb:327:in `notify'
>  [error]   ./script/../config/../app/models/project.rb:323:in `collect'
>  [error]   ./script/../config/../app/models/project.rb:323:in `notify'
>  [error]   ./script/../config/../app/models/project.rb:208:in
>  `build_if_necessary'
>  [error]   ./script/../config/../app/models/polling_scheduler.rb:13:in
>  `run'
>  [error]   ./script/builder:79
>  [error]   ./script/builder:78:in `catch'
>  [error]   ./script/builder:78
>  [error]   script/../config/../cruise:14:in `load'
>  [error]   script/../config/../cruise:14:in `builder'
>  [error]   script/../config/../cruise:68:in `send'
>  [error]   script/../config/../cruise:68
>  [error]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `chdir'
>  [error]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `cd'
>  [error]   script/../config/../cruise:67
>  [fatal] Input/output error
>  [fatal]   ./script/../config/../app/models/polling_scheduler.rb:62:in
>  `write'
>  [fatal]   ./script/../config/../app/models/polling_scheduler.rb:62:in
>  `puts'
>  [fatal]   ./script/../config/../app/models/polling_scheduler.rb:62:in
>  `log_error'
>  [fatal]   ./script/../config/../app/models/polling_scheduler.rb:17:in
>  `run'
>  [fatal]   ./script/builder:79
>  [fatal]   ./script/builder:78:in `catch'
>  [fatal]   ./script/builder:78
>  [fatal]   script/../config/../cruise:14:in `load'
>  [fatal]   script/../config/../cruise:14:in `builder'
>  [fatal]   script/../config/../cruise:68:in `send'
>  [fatal]   script/../config/../cruise:68
>  [fatal]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `chdir'
>  [fatal]   /usr/local/lib/ruby/1.8/fileutils.rb:121:in `cd'
>  [fatal]   script/../config/../cruise:67
>  [info]  [2008-03-31 10:59:48] Builder for project 'noaama_trunk' exited
>
>  It appears that CruiseControl always wants a console to write to. I
>  thought this was because of WEBRICK so I forced it to start in Daemon
>  mode. Unfortunately that did not work and I am now at a loss. Is
>  there something special I need to do to get CruiseControl to build
>  projects in the background, so I can start it up as a service and let
>  it do its work?  I am running CentOS 5 and Ruby 1.8.6. Any insight
>  would be greatly appreciated.
>
>  Billy
>
>  --
>  This message has been scanned for viruses and
>  dangerous content by MailScanner, and is
>  believed to be clean.
>
>  _______________________________________________
>  Cruisecontrolrb-users mailing list
>  [email protected]
>  http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>
_______________________________________________
Cruisecontrolrb-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to