[Python-au] running a socket server as deamon
mydnite1 at gmail.com
Mon Feb 15 01:31:13 UTC 2010
The socket server is just using the socket library and not the actual
server libraries. Its is fairly robust, tested with a range of
different client socket programs and terminals.
For some reason it wasn't accepting connections and I thought that it
had crashed. The centos firewall just hadn't been configured properly
for that port, host was using apf not iptables. I really want to
write it as a daemon, I agree that the monitor program is a bit of a
Thanks for the tip on stdout, I'm using the logging library but I'm
also still printing some info just for my purposes. The init step in
the daemon looks like exactly what I want.
Thanks for your comments, I will give http://supervisord.org/ a look.
I have a couple of other projects coming up where this will come in
On Sun, Feb 14, 2010 at 5:54 PM, Richard Colley
<richard.colley at rcolley.com> wrote:
> An alternative to daemontools (and python-daemon): http://supervisord.org/
> Particularly nice if you have several processes with dependencies you'd like
> to manage. Lots of other nice features that may or may not be useful in
> your case.
> On 12 February 2010 17:01, James Alford <mydnite1 at gmail.com> wrote:
>> The daemon that I was going to use is the pypi link below. The
>> jejik.com article code looks attractive for something where the
>> monitor code is built into the daemon code.
>> Daemon references:
More information about the python-au