Skip to content

Commit

Permalink
Add option 'nodaemon' to buildslave start/restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviojs committed Apr 24, 2012
1 parent 6fd1097 commit cc02ed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slave/buildslave/scripts/runner.py
Expand Up @@ -269,6 +269,7 @@ def postOptions(self):
class StartOptions(MakerBase):
optFlags = [
['quiet', 'q', "Don't display startup log messages"],
['nodaemon', None, "Don't daemonize"],
]
def getSynopsis(self):
return "Usage: buildslave start [<basedir>]"
Expand All @@ -280,6 +281,7 @@ def getSynopsis(self):
class RestartOptions(MakerBase):
optFlags = [
['quiet', 'q', "Don't display startup log messages"],
['nodaemon', None, "Don't daemonize"],
]
def getSynopsis(self):
return "Usage: buildslave restart [<basedir>]"
Expand Down
2 changes: 2 additions & 0 deletions slave/buildslave/scripts/startup.py
Expand Up @@ -109,6 +109,8 @@ def launch(config):
"--no_save",
"--logfile=twistd.log", # windows doesn't use the same default
"--python=buildbot.tac"]
if config['nodaemon']:
argv.extend(['--nodaemon'])
sys.argv = argv

# this is copied from bin/twistd. twisted-2.0.0 through 2.4.0 use
Expand Down

0 comments on commit cc02ed1

Please sign in to comment.