Hi... I'm going for the "simplest/dumbest" question of the year award: How do I stop zope? I just set it up on Red Hat Linux...and after running "./start &" the server is up and running. I've now added CMF and would like to shut it down/restart. Can't do it. I've tried from the ZMI control panel (error message)...and from the linux prompt (I'm new to linux, but I tried: "./stop" (and every conceivable variation) and get a "./stop: kill: (24799) no such pid" message). What am I doing wrong? George PS - I'm also running zope on win 2000 - no prob - init file does the trick.
pull the plug ;) I've had this happen, that the process id (pid) in the var/Z2.pid file isn't the one currently running the Zope process. to find the real id, enter: ps -ef | grep z2 and - inshallah - you'll see some process information saying something like: zope 370 1 0 Feb 01 ? 0:00 /usr/local/bin/python /opt/zope/z2.py -D zope 374 370 0 Feb 01 ? 0:20 /usr/local/bin/python /opt/zope/z2.py -D these are the two zope processes I get. the top one is the parent process, the bottom one the child (I think!). the second column in - the first number, is the process ID, so I'd type: kill 370 which should get the parent and the child. my sysadmin knowledge is looking very threadbare here, maybe you'll need to kill the child also: kill 374 this should shut down your Zope. could/would anyone shed light on why there are two processes, and why sometimes the pid in Z2 isn't the one running Zope, so ./stop fails? Ben George Siemens wrote:
Hi...
I'm going for the "simplest/dumbest" question of the year award:
How do I stop zope?
I just set it up on Red Hat Linux...and after running "./start &" the server is up and running. I've now added CMF and would like to shut it down/restart. Can't do it. I've tried from the ZMI control panel (error message)...and from the linux prompt (I'm new to linux, but I tried: "./stop" (and every conceivable variation) and get a "./stop: kill: (24799) no such pid" message). What am I doing wrong?
George
PS - I'm also running zope on win 2000 - no prob - init file does the trick.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
George Siemens wrote at 2003-2-3 10:55 -0600:
I'm going for the "simplest/dumbest" question of the year award:
How do I stop zope?
I just set it up on Red Hat Linux...and after running "./start &" the server is up and running. I've now added CMF and would like to shut it down/restart. Can't do it. I've tried from the ZMI control panel (error message) That's the easiest way to shutdown Zope.
Ignore the error message. It's an artefact because Python raises a "SystemExit" exeption when "sys.exit" (Python's shutdown function) is called. No one gave this exception special treatment. Therefore, you see it reported.
...and from the linux prompt (I'm new to linux, but I tried: "./stop" (and every conceivable variation) and get a "./stop: kill: (24799) no such pid" message). This means either, that Zope is already stopped (e.g. because your ZMI action has been successful) or that the PID found in "var/Z2.pid" no longer describes the correct Zope process (the feature is a bit brittle).
What am I doing wrong? Almost surely, you simply got confused by the (stupid) error message... Dieter
participants (3)
-
Ben Avery -
Dieter Maurer -
George Siemens