[Zope] Zope 2.7.0 zopectl problems (bug?) and questions

Chris McDonough chrism at plope.com
Mon Feb 16 09:13:01 EST 2004


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=C3=A9 wrote:
> I'm trying to find out how to use the zopectl script.
>=20
> My guess (in the absence of docs) would be that:
>=20
> ./zopectl start     starts zope
> ./zopectl stop     stops zope
>=20
> The start command gives me the following problem:
>=20
> MJMG5:~/devel/python/Zope/instance2/bin mjm$ ./zopectl start
> Traceback (most recent call last):
>    File =20
> "/Users/mjm/devel/python/Zope-2.7.0/lib/python/Zope/Startup/=20
> zopectl.py", line 207, in ?
>      main()
>    File =20
> "/Users/mjm/devel/python/Zope-2.7.0/lib/python/Zope/Startup/=20
> zopectl.py", line 190, in main
>      c.onecmd(" ".join(options.args))
>    File =20
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/=20
> python2.3/cmd.py", line 210, in onecmd
>      return func(arg)
>    File =20
> "/Users/mjm/devel/python/Zope-2.7.0/lib/python/Zope/Startup/=20
> zopectl.py", line 134, in do_start
>      ZDCmd.do_start(self, arg)
>    File =20
> "/Users/mjm/devel/python/Zope-2.7.0/lib/python/zdaemon/zdctl.py", line =
=20
> 214, in do_start
>      os.spawnvp(flag, args[0], args)
>    File =20
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/=20
> python2.3/os.py", line 543, in spawnvp
>      return _spawnvef(mode, file, args, None, execvp)
>    File =20
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/=20
> python2.3/os.py", line 504, in _spawnvef
>      wpid, sts =3D waitpid(pid, 0)
> OSError: [Errno 10] No child processes
>=20
> But Zope DOES start! This on a Mac G5 (OSX 10.3) and python 2.3.
>=20
>=20
> Also what do the 'daemon', 'backoff-limit' and 'forever' options do? =20
> When I use ./zopectl -f start and then ./zopectl -f show, I get =20
> 'forever': 0.
>=20
> How can I create an auto-restarting Zope, so that when Zope crashes it =
=20
> is automatically restarted?
>=20
> Finally how do I see (and distinguish) the Zope process in the ps =20
> listing (yes I'm coming from a Windows background ;-)?
>=20
> TIA
>=20
> M.J. Mar=C3=A9
> WebToTheMax
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )




More information about the Zope mailing list