Is this possible to daemonize a process launched from Zope ?
Hi, I'd want to know : has someone ever tried to launch a process from Zope and daemonize it so that it runs by itself and doesn't hang one zope thread ? I'm thinking about the fork+exec with controlling terminal and process group detachment, available under *nix systems. Is such a thing possible ? Are there any drawbacks ? (beside not being portable to Win) I know I could try and see by myself, but if someone has already done it or says its impossible, then I'd better know now. Thanks in advance Jerome Alet
On Wed, 2003-05-28 at 06:35, Jerome Alet wrote:
I'm thinking about the fork+exec with controlling terminal and process group detachment, available under *nix systems.
Why not rely on your existing rc/init.d scripts? Let Zope check daemon status and start/stop particular daemons as needed. The details will vary by system, but shouldn't consist of more than a handful of shell commands in any event.
Is such a thing possible ?
I would certainly think so.
Are there any drawbacks ? (beside not being portable to Win)
That, and the obvious security implications of giving a relatively monolithic piece of software a bigger set of privileges. Dylan
Jerome Alet wrote at 2003-5-28 15:35 +0200:
I'd want to know :
has someone ever tried to launch a process from Zope and daemonize it so that it runs by itself and doesn't hang one zope thread ?
It is not necessary to daemonzie the script to release the zope thread. The thread is released as soon as the called function returns (independent of the forked external process). Dieter
participants (3)
-
Dieter Maurer -
Dylan Reinhardt -
Jerome Alet