summaryrefslogtreecommitdiff
path: root/pcr/tahoe-lafs/nodaemon.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-13 10:49:01 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-13 10:49:01 -0300
commit49393bba118e095e2972523a26977e2b31e550ff (patch)
tree4a6769d8ccc0eb45d83f149e269aa91a54e7a93f /pcr/tahoe-lafs/nodaemon.patch
parent23c93a8bc3b2e79b3438f12ca03a3ef28a44fcbb (diff)
downloadabslibre-49393bba118e095e2972523a26977e2b31e550ff.tar.gz
abslibre-49393bba118e095e2972523a26977e2b31e550ff.tar.bz2
abslibre-49393bba118e095e2972523a26977e2b31e550ff.zip
Tahoe LAFS
Diffstat (limited to 'pcr/tahoe-lafs/nodaemon.patch')
-rw-r--r--pcr/tahoe-lafs/nodaemon.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/tahoe-lafs/nodaemon.patch b/pcr/tahoe-lafs/nodaemon.patch
new file mode 100644
index 000000000..dfcc0b8ae
--- /dev/null
+++ b/pcr/tahoe-lafs/nodaemon.patch
@@ -0,0 +1,19 @@
+--- src/allmydata/scripts/startstop_node.py 2011-10-30 22:54:34.000000000 +0100
++++ src/allmydata/scripts/startstop_node.py 2011-11-10 15:22:21.432711365 +0100
+@@ -10,6 +10,7 @@
+ optFlags = [
+ ["profile", "p", "Run under the Python profiler, putting results in 'profiling_results.prof'."],
+ ["syslog", None, "Tell the node to log to syslog, not a file."],
++ ["nodaemon", "n", "Do not daemonize."],
+ ]
+
+ def getSynopsis(self):
+@@ -70,6 +71,8 @@
+ args.extend(["--logfile", os.path.join("logs", "twistd.log")])
+ if opts["profile"]:
+ args.extend(["--profile=profiling_results.prof", "--savestats",])
++ if opts["nodaemon"]:
++ args.extend(["--nodaemon", "--umask=0077"])
+ # now we're committed
+ os.chdir(basedir)
+ from twisted.scripts import twistd