Skip to content

Commit

Permalink
Add option 'nodaemon' to buildbot start/restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviojs committed Apr 24, 2012
1 parent cc02ed1 commit 2bdaf4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions master/buildbot/scripts/runner.py
Expand Up @@ -143,6 +143,7 @@ class RestartOptions(base.BasedirMixin, base.SubcommandOptions):
subcommandFunction = "buildbot.scripts.restart.restart"
optFlags = [
['quiet', 'q', "Don't display startup log messages"],
['nodaemon', None, "Don't daemonize"],
]
def getSynopsis(self):
return "Usage: buildbot restart [<basedir>]"
Expand All @@ -152,6 +153,7 @@ class StartOptions(base.BasedirMixin, base.SubcommandOptions):
subcommandFunction = "buildbot.scripts.start.start"
optFlags = [
['quiet', 'q', "Don't display startup log messages"],
['nodaemon', None, "Don't daemonize"],
]
def getSynopsis(self):
return "Usage: buildbot start [<basedir>]"
Expand Down
2 changes: 2 additions & 0 deletions master/buildbot/scripts/start.py
Expand Up @@ -71,6 +71,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 2bdaf4f

Please sign in to comment.