Daemonizing python

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sun Sep 24 17:19:12 EDT 2006


Paul Rubin wrote:
> NinjaZombie <ninjazombie at net.hr> writes:

>> I was wondering if it is possible to turn the current python
>> proccess into a unix daemon, but not doing it like this:
>> python myscript.py &
>> but from code programaticaly.
 
> Yeah, os.fork and the parent process exits.

Or little helpers like twistd -- only feasible if you use Twisted
though.

Regards,


Björn

-- 
BOFH excuse #438:

sticky bit has come loose




More information about the Python-list mailing list