[Buildbot-devel] start scripts

Andy Howell AndyHowell at austin.rr.com
Fri Sep 24 02:36:38 UTC 2010


On 09/22/2010 06:24 PM, Dustin J. Mitchell wrote:
> On Wed, Sep 22, 2010 at 1:07 AM, Andy Howell <AndyHowell at austin.rr.com> wrote:
>> I'm working on making some unix start scripts to buildbot and buildslave start at boot time.
>>
>> When buildbot or buildslave start up, they always tail the log. Is there a way to shut
>> that off and just get a success or fail status?
> 
> You should probably just run buildbot using the twistd invocation
> directly that build{slave,bot} start uses.  The start and stop scripts
> are really only command-line conveniences..
> 
> Dustin
> 

Thanks. Its looks like I should do:

twistd -y buildbot.tac

Thats start up buildbot ok, and returns a status of 0. However, even if the master.cfg has
errors in it, the process continues to run. The log however has:

	  File "/home/buildbot/Master/master.cfg", line 16, in <module>
	    gomi
	exceptions.NameError: name 'gomi' is not defined
	
2010-09-23 21:23:35-0500 [-] The new config file is unusable, so I'll ignore it.
2010-09-23 21:23:35-0500 [-] I will keep using the previous config file instead.

I think this is a bug. Shouldn't buildbot exit with a non-zero status if it can't read the
config at startup?

Andy




More information about the devel mailing list