def checkBasedir(config): if not config['quiet']: print "checking basedir" if not base.isBuildmasterDir(config['basedir']): return False if runtime.platformType != 'win32': # no pids on win32 if not config['quiet']: print "checking for running master" pidfile = os.path.join(config['basedir'], 'twistd.pid') if os.path.exists(pidfile): print "'%s' exists - is this master still running?" % (pidfile, ) return False tac = base.getConfigFromTac(config['basedir']) if tac: if isinstance(tac.get('rotateLength', 0), str): print "WARNING: rotateLength is a string, it should be a number" return False if isinstance(tac.get('maxRotatedFiles', 0), str): print "WARNING: maxRotatedFiles is a string, it should be a number" return False return True
def checkBasedir(config): if not config['quiet']: print "checking basedir" if not base.isBuildmasterDir(config['basedir']): return False if runtime.platformType != 'win32': # no pids on win32 if not config['quiet']: print "checking for running master" pidfile = os.path.join(config['basedir'], 'twistd.pid') if os.path.exists(pidfile): print "'%s' exists - is this master still running?" % (pidfile,) return False tac = base.getConfigFromTac(config['basedir']) if tac: if isinstance(tac.get('rotateLength', 0), str): print "ERROR: rotateLength is a string, it should be a number" print "ERROR: Please, edit your buildbot.tac file and run again" print "ERROR: See http://trac.buildbot.net/ticket/2588 for more details" return False if isinstance(tac.get('maxRotatedFiles', 0), str): print "ERROR: maxRotatedFiles is a string, it should be a number" print "ERROR: Please, edit your buildbot.tac file and run again" print "ERROR: See http://trac.buildbot.net/ticket/2588 for more details" return False return True
def checkBasedir(config): if not config['quiet']: print "checking basedir" if not base.isBuildmasterDir(config['basedir']): return False if runtime.platformType != 'win32': # no pids on win32 if not config['quiet']: print "checking for running master" pidfile = os.path.join(config['basedir'], 'twistd.pid') if os.path.exists(pidfile): print "'%s' exists - is this master still running?" % (pidfile,) return False tac = base.getConfigFromTac(config['basedir']) if tac: if isinstance(tac.get('rotateLength', 0), str): print "WARNING: rotateLength is a string, it should be a number" return False if isinstance(tac.get('maxRotatedFiles', 0), str): print "WARNING: maxRotatedFiles is a string, it should be a number" return False return True