the dreaded double fork

Ivan Voras ivoras at __geri.cc.fer.hr
Wed May 5 13:32:29 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&

try:
nohup sudo python mydaemon start &



More information about the Python-list mailing list