From: Brian Warner Date: Mon, 18 Feb 2008 07:31:28 +0000 (-0700) Subject: 'tahoe start': only create logs/ if we're starting a tahoe node X-Git-Url: https://git.rkrishnan.org/pf/content/COPYING.TGPPL.html?a=commitdiff_plain;h=92a6ab6e867544514da0379f0ba5ab50cfd1f67e;p=tahoe-lafs%2Ftahoe-lafs.git 'tahoe start': only create logs/ if we're starting a tahoe node --- diff --git a/src/allmydata/scripts/startstop_node.py b/src/allmydata/scripts/startstop_node.py index c79bad11..81c6f764 100644 --- a/src/allmydata/scripts/startstop_node.py +++ b/src/allmydata/scripts/startstop_node.py @@ -57,9 +57,9 @@ def do_start(basedir, profile=False, out=sys.stdout, err=sys.stderr): print "Can't find twistd (it comes with Twisted). Aborting." sys.exit(1) - fileutil.make_dirs(os.path.join(basedir, "logs")) cmd.extend(["-y", tac]) if nodetype in ("client", "introducer"): + fileutil.make_dirs(os.path.join(basedir, "logs")) cmd.extend(["--logfile", os.path.join("logs", "twistd.log")]) if profile: cmd.extend(["--profile=profiling_results.prof", "--savestats",])