Daemonizing python

Andi Clemens andi.clemens at gmx.net
Mon Sep 25 08:23:45 CEST 2006


what is the main difference of running a python program as a daemon or 
as a cronjob?

I have written a program at work that checks all internet connections of 
our failover sites and saves the results in a MySQL-database.
The whole program is made with django (a webframework) so I had to be 
sure that the "checking procedure" is done every 30 minutes.

I used a cronjob for that job, but I don't know if a daemon would be 

NinjaZombie wrote:
> Hi!
> 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.
> Thanks.

homepage: http://www.the-grudge.net
ICQ: 9450091
Skype: thegrudge_2
Mozilla Thunderbird
Arch Linux

More information about the Python-list mailing list