[Twisted-Python] Switch to a different uid/gid after binding reserved ports

Glyph Lefkowitz glyph at twistedmatrix.com
Sun Jun 8 09:56:36 EDT 2003


On Sunday, June 8, 2003, at 09:46 AM, Richard Townsend wrote:

> Our system uses a home-grown process controller application to start
> background processes. If it receives a SIGCHLD, it restarts the 
> application.
> It appears to me that when you run twistd, it forks a new process and 
> the
> original twistd dies. Our controller would then keep trying to restart 
> it...

This is fixed easily enough.

glyph at parchment:~% twistd --help | grep -- --nodaemon
   -n, --nodaemon         don't daemonize

Make sure you pass a '-l' option as well, otherwise it will log to 
standard output.





More information about the Twisted-Python mailing list