[Zope] Starting zope from a python script
Dieter Maurer
dieter@handshake.de
Sat, 4 Aug 2001 02:44:55 +0200 (CEST)
Chris Keyes writes:
> I'm trying to write a Python script to control zope, basically it creates
> the instance home etc and so on and then fires up zope, checks for z2.pid
> and then prods zope and does some things to it...
>
> Thats all ok, fine etc... but I am writing a script that reverses the
> process if anything fails (it should never fail, but while I'm looking after
> it, things will inevitably go wrong) so...
>
> I want to be able to kill the Zope processes... Simple me thinks, I am using
> a -u to set the user so I can kill all the threads belonging to that user
> and the thing will die?? No, not quiet, the process that started the Zope
> instance keeps restarting it (most of the time this sounds like a great
> option but...)
"Z2.pid" contains 2 pid's. One is that of the demon (that is restarting
Zope in case of failute), the other of that of Zope itself.
You need to stop both processes...
Dieter