[Tutor] Python Daemon

Kalle Svensson kalle@gnupung.net
Mon, 12 Mar 2001 00:51:12 +0100


Sez Pedro Diaz Jimenez:
> Ok, you can make a proccess go to background with the & operator of the
> shell. But that is considered crappy.

So sue me for being crappy! <wink>
My point is that it isn't necessary to start fork()ing and kill()ing just
because you want a daemon.  Surely, that's the way to go when your
application is becoming more mature, but I feel that it's an unnecessary
burden in early development phases...  That's my opinion, you may have yours.

> If you want your program go to background without any external
> intervention, you have to fork and kill the father.

I believe this is true, and I don't dispute it.  My beef basically is that
you're making daemon writing more difficult than it can be.

Peace,
  Kalle
-- 
Email: kalle@gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
 [ Not signed due to lossage.  Blame Microsoft Outlook Express. ]