[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do any one know how to make a daemon in python



On Sun, Dec 23, 2007 at 09:52:14AM +0200, moayyad sadi wrote:
> in C we use daemon() or fork() then setsid()
> I tried the later in python but it did not work ?
> 
> what I mean, how to make a script that won't die when the caller ends
> or when you close the terminal

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fooaggregator/parsers/daemon/daemon.py?revision=1.1.2.4&view=markup&pathrev=DRUPAL-5

check __daemonize()

I didn't know about daemon(2) thanks for that (-:

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org

Attachment: signature.asc
Description: Digital signature