From: Brian Warner Date: Wed, 25 Jul 2007 03:44:33 +0000 (-0700) Subject: move nodelogs from BASEDIR/twistd.log* to BASEDIR/logs/twistd.log*, closes #61 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=2ba415bd3e05b52769e8dace9c1f60c6c085b978;p=tahoe-lafs%2Ftahoe-lafs.git move nodelogs from BASEDIR/twistd.log* to BASEDIR/logs/twistd.log*, closes #61 --- diff --git a/src/allmydata/scripts/startstop_node.py b/src/allmydata/scripts/startstop_node.py index f2197853..5b6f0bf7 100644 --- a/src/allmydata/scripts/startstop_node.py +++ b/src/allmydata/scripts/startstop_node.py @@ -70,7 +70,9 @@ def do_start(basedir, config, out=sys.stdout, err=sys.stderr): print >>err, " in fact, it doesn't look like a directory at all!" sys.exit(1) twistd = find_twistd() - rc = subprocess.call(["python", twistd, "-y", tac,], cwd=basedir) + os.mkdir(os.path.join(basedir, "logs")) + cmd = ["python", twistd, "-y", tac, "--logfile", "logs/twistd.log"] + rc = subprocess.call(cmd, cwd=basedir) if rc == 0: print >>out, "%s node probably started" % type return 0