]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
'tahoe start': only create logs/ if we're starting a tahoe node
authorBrian Warner <warner@lothar.com>
Mon, 18 Feb 2008 07:31:28 +0000 (00:31 -0700)
committerBrian Warner <warner@lothar.com>
Mon, 18 Feb 2008 07:31:28 +0000 (00:31 -0700)
src/allmydata/scripts/startstop_node.py

index c79bad1146d8f967d9c42d13845cf9df98f24698..81c6f7649028d69ddbcf1822137516d0a6feb90c 100644 (file)
@@ -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",])