XML-RPC server via xinetd
Jos Vos
jos at xos.nl
Sun Apr 16 18:40:37 EDT 2006
On Sun, Apr 16, 2006 at 10:13:19PM +0200, Martin P. Hellwig wrote:
> Isn't this just a standard daemon functionality?
What is "a standard daemon"? :-)
> So if you could wrap up your program in a daemon like fashion (e.g.
> http://homepage.hispeed.ch/py430/python/daemon.py) and then point the
> xinetd configuration to the right script, it should just work?
In fact, the standard use *is* a daemon (that is, accepting connections
on a certain port) and I want it to be *not* a daemon. For the daemon
method I use something similar to "daemonize", but now I want it to
*not* do the binds etc. to listen on a port.
The problem is that the server initialization *requires* a server
address (host, port pair), but I don't see how to tell it to use
the stdin socket (and I'm afraid this is not possible, but I'm not
sure).
--
-- Jos Vos <jos at xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
More information about the Python-list
mailing list