]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
move nodelogs from BASEDIR/twistd.log* to BASEDIR/logs/twistd.log*, closes #61
authorBrian Warner <warner@allmydata.com>
Wed, 25 Jul 2007 03:44:33 +0000 (20:44 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 25 Jul 2007 03:44:33 +0000 (20:44 -0700)
src/allmydata/scripts/startstop_node.py

index f2197853a469504e8ead8165849302506d9e6dbb..5b6f0bf71d9e4d9853f7bbee93f44f669f068ac2 100644 (file)
@@ -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