projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de9363
)
move nodelogs from BASEDIR/twistd.log* to BASEDIR/logs/twistd.log*, closes #61
author
Brian Warner
<warner@allmydata.com>
Wed, 25 Jul 2007 03:44:33 +0000
(20:44 -0700)
committer
Brian Warner
<warner@allmydata.com>
Wed, 25 Jul 2007 03:44:33 +0000
(20:44 -0700)
src/allmydata/scripts/startstop_node.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/startstop_node.py
b/src/allmydata/scripts/startstop_node.py
index f2197853a469504e8ead8165849302506d9e6dbb..5b6f0bf71d9e4d9853f7bbee93f44f669f068ac2 100644
(file)
--- 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