I have a simple web server written in Twisted, and I m trying to start it up daemonized with twistd. Everything works fine with reactor.run()
but when I use twistd -y
(as root), none of my packages which are in direct child directories get found. I m running twistd as root, since the server runs on port 80. The manpage for twistd says:
Note that if twistd is run as root, the working directory is not searched for Python modules.
Well that s great but why? And how can I work around? twistd seems to be ignoring --rundir .
even if I set that option explicitly.