diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-09-15 15:44:38 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-09-15 15:44:38 -0300 |
commit | ee2ddecc62710a9ab8a715f2955481d201e84fbf (patch) | |
tree | 58bad9b127688358ae18c5eb2e4ca2c094885d0e /pcr/tahoe-lafs/nodaemon.patch | |
parent | 5d514cbf527b6ccecad5e37c6826d8463fe68e2a (diff) | |
parent | fc5c5b349fa3fcbe2d41b213c5c153cde9e9339a (diff) | |
download | abslibre-ee2ddecc62710a9ab8a715f2955481d201e84fbf.tar.gz abslibre-ee2ddecc62710a9ab8a715f2955481d201e84fbf.tar.bz2 abslibre-ee2ddecc62710a9ab8a715f2955481d201e84fbf.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/tahoe-lafs/nodaemon.patch')
-rw-r--r-- | pcr/tahoe-lafs/nodaemon.patch | 19 |
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 |