Ticket #986: nodaemon.patch
File nodaemon.patch, 825 bytes (added by np, at 2011-11-10T15:31:52Z) |
---|
-
src/allmydata/scripts/startstop_node.py
10 10 optFlags = [ 11 11 ["profile", "p", "Run under the Python profiler, putting results in 'profiling_results.prof'."], 12 12 ["syslog", None, "Tell the node to log to syslog, not a file."], 13 ["nodaemon", "n", "Do not daemonize."], 13 14 ] 14 15 15 16 def getSynopsis(self): … … 70 71 args.extend(["--logfile", os.path.join("logs", "twistd.log")]) 71 72 if opts["profile"]: 72 73 args.extend(["--profile=profiling_results.prof", "--savestats",]) 74 if opts["nodaemon"]: 75 args.extend(["--nodaemon", "--umask=0077"]) 73 76 # now we're committed 74 77 os.chdir(basedir) 75 78 from twisted.scripts import twistd