[Medusa-dev] medusa daemon

Adam Feuer adamf@pobox.com
Thu Oct 31 18:17:12 2002


> douglas savitsky wrote:
> hi there, does anyone have a trivial example of running medusa as a daemon
(on FreeBSD in my case) process?  i found > examples of making a python
daemon, but i don't understand how the asyncore.loop() comes in to play.
> an example that would daemonize something like the following would be
great.

Douglas,
  The Python Cookbook has a couple of recipes... here's the one that looks
best to me:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012

  Here's a shorter alternative, but I'm not sure it'll work right:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52216

cheers
adam
--
Adam Feuer <adamf at pobox dot com>