mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Move the --nodaemon logic out of tahoe_run
We're always going to --nodaemon from now on
This commit is contained in:
parent
f17a5dfafc
commit
d8da612055
@ -195,13 +195,7 @@ def run(config):
|
|||||||
# Now prepare to turn into a twistd process. This os.chdir is the point
|
# Now prepare to turn into a twistd process. This os.chdir is the point
|
||||||
# of no return.
|
# of no return.
|
||||||
os.chdir(basedir)
|
os.chdir(basedir)
|
||||||
twistd_args = []
|
twistd_args = ["--nodaemon"]
|
||||||
if (nodetype in (u"client", u"introducer")
|
|
||||||
and "--nodaemon" not in config.twistd_args
|
|
||||||
and "--syslog" not in config.twistd_args
|
|
||||||
and "--logfile" not in config.twistd_args):
|
|
||||||
fileutil.make_dirs(os.path.join(basedir, u"logs"))
|
|
||||||
twistd_args.extend(["--logfile", os.path.join("logs", "twistd.log")])
|
|
||||||
twistd_args.extend(config.twistd_args)
|
twistd_args.extend(config.twistd_args)
|
||||||
twistd_args.append("DaemonizeTahoeNode") # point at our DaemonizeTahoeNodePlugin
|
twistd_args.append("DaemonizeTahoeNode") # point at our DaemonizeTahoeNodePlugin
|
||||||
|
|
||||||
|
@ -10,6 +10,3 @@ __all__ = [
|
|||||||
|
|
||||||
class RunOptions(_RunOptions):
|
class RunOptions(_RunOptions):
|
||||||
subcommand_name = "run"
|
subcommand_name = "run"
|
||||||
|
|
||||||
def postOptions(self):
|
|
||||||
self.twistd_args += ("--nodaemon",)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user