mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
move nodelogs from BASEDIR/twistd.log* to BASEDIR/logs/twistd.log*, closes #61
This commit is contained in:
parent
8de93635af
commit
2ba415bd3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user