From 2ba415bd3e05b52769e8dace9c1f60c6c085b978 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 24 Jul 2007 20:44:33 -0700 Subject: [PATCH] move nodelogs from BASEDIR/twistd.log* to BASEDIR/logs/twistd.log*, closes #61 --- src/allmydata/scripts/startstop_node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2