[Tutor] Python Daemon

Deirdre Saoirse deirdre@deirdre.net
Sun, 11 Mar 2001 15:16:35 -0800 (PST)


On Mon, 12 Mar 2001, Kalle Svensson wrote:

> Sez Pedro Diaz Jimenez:
> > In order to make a daemon, you've got to fork() and kill the father. Then
> > you have a child in the background
>
> That's not true, at least not with my definition of daemon, basically
> a process that is left running.  Just start the process in the
> background (with an &, like "python script.py &") and exit the shell.
> Perhaps with older shells you'll have to run it through nohup or
> something, but I don't know.

That doesn't *necessarily* work -- try logging out from that shell
afterwards. In many cases, it'll be gone. Screen is a workaround, but not
suitable for a daemon.

--
_Deirdre   NEW Stash-o-Matic: http://fuzzyorange.com  http://deirdre.net
"I love deadlines. I like the whooshing sound they make as they fly by."
                                                         - Douglas Adams