the dreaded double fork

Yermat loic at fejoz.net
Wed May 5 12:15:12 EDT 2004


John Hunter wrote:
> I am using python to run an xml rpc daemon using SimpleXMLRPCServer.
> Following a cookbook recipe, I am trying to do a double fork so that
> when I exit the shell the daemon remains running.  But it doesn't.
> Here is how I start the script
> 
> 
>>ssh somehost
>>sudo python mydaemon start&
> 
> 
> But when I exit the shell, I lose the process.
> 
> What am I doing wrong?  Here is my script, with all the non server
> stuff snipped.


You will find here one(?) good way of doing it :
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731

-- 
Yermat




More information about the Python-list mailing list