[Python-au] running a socket server as deamon

jack andrews effbiae at gmail.com
Fri Feb 12 07:53:49 UTC 2010


hi james,

> The couple of ideas I have are:
> * Running the socket server as a deamon.
> * Create a monitor process that checks to see if the pid of the socket
> server exists, then if it can connect to the socket port, calls a
> restart on the daemon and exits.
> * Run the monitor process from a cron job.

i would run the monitor process as a daemon that
restarts the socket server after the server exits.

set up a cron job to check the monitor process is
running and start if not.

get init to start the monitor process at startup.

that should cover it.


ta, jack.



More information about the python-au mailing list