Apparently zopectl doesn't work properly under OS X or Solaris. Starting Zope under zopectl (if it worked properly) would cause it to auto-restart. You distinguise the Zope process in the ps listing by looking for a process that runs python. On Mon, 2004-02-16 at 08:03, Marcel Maré wrote:
I'm trying to find out how to use the zopectl script.
My guess (in the absence of docs) would be that:
./zopectl start starts zope ./zopectl stop stops zope
The start command gives me the following problem:
MJMG5:~/devel/python/Zope/instance2/bin mjm$ ./zopectl start Traceback (most recent call last): File "/Users/mjm/devel/python/Zope-2.7.0/lib/python/Zope/Startup/ zopectl.py", line 207, in ? main() File "/Users/mjm/devel/python/Zope-2.7.0/lib/python/Zope/Startup/ zopectl.py", line 190, in main c.onecmd(" ".join(options.args)) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/cmd.py", line 210, in onecmd return func(arg) File "/Users/mjm/devel/python/Zope-2.7.0/lib/python/Zope/Startup/ zopectl.py", line 134, in do_start ZDCmd.do_start(self, arg) File "/Users/mjm/devel/python/Zope-2.7.0/lib/python/zdaemon/zdctl.py", line 214, in do_start os.spawnvp(flag, args[0], args) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/os.py", line 543, in spawnvp return _spawnvef(mode, file, args, None, execvp) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/os.py", line 504, in _spawnvef wpid, sts = waitpid(pid, 0) OSError: [Errno 10] No child processes
But Zope DOES start! This on a Mac G5 (OSX 10.3) and python 2.3.
Also what do the 'daemon', 'backoff-limit' and 'forever' options do? When I use ./zopectl -f start and then ./zopectl -f show, I get 'forever': 0.
How can I create an auto-restarting Zope, so that when Zope crashes it is automatically restarted?
Finally how do I see (and distinguish) the Zope process in the ps listing (yes I'm coming from a Windows background ;-)?
TIA
M.J. Maré WebToTheMax
_______________________________________________ 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 )