From 49393bba118e095e2972523a26977e2b31e550ff Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 13 Sep 2013 10:49:01 -0300 Subject: Tahoe LAFS --- pcr/tahoe-lafs/nodaemon.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pcr/tahoe-lafs/nodaemon.patch (limited to 'pcr/tahoe-lafs/nodaemon.patch') 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 -- cgit v1.2.3