Restarting Zope after shut-down / crash?
I'd like Zope to restart automatically upon reboot. I found the following z2.py argument with Zope 2.6, but by itself it doesn't seem to do much. From the z2.py --help:
-Z 0 or 1
UNIX only! This option is ignored on Windows.
This option controls whether a management process will be created that restarts Zope after a shutdown or crash.
If the argument to -Z is non-null (e.g. "-Z1" or "-Zyes"), a management process will be used. If the argument to -Z is "-", or "0", (e.g. "-Z-" or "-Z0"), a management process will not be used. On UNIX, the default behavior is to create a separate management process (e.g. -Z1) if the -Z option is not specified.
(Note: the -Z option in Zopes before Zope 2.6 used to be used to specify a pidfile name for the management process. This pidfile no longer exists).
I'm running Zope on Linux (RH 7.3), but I'm a Linux newbie. Is this the way to get Zope to start on boot? If so, why doesn't it seem to work? Do I need to install / run as root? I know there are other ways to start Zope on boot, but I wonder if adding this parameter to my start script would work somehow. I did add the argument ('-Z1' and '-Z 1') to my start script, but Zope doesn't start upon rebooting. Thanks in advance, Jon Whitener Detroit
The easiest way is by using an rc script. There are a number out there... here's one: http://www.zope.org/Members/markoer2/resources/howtos/redhat_startup Also, read the INSTALL.txt that shipped with your Zope distro. There's a lot of important info in there. HTH, Dylan At 12:14 PM 11/4/2002 -0500, you wrote:
I'm running Zope on Linux (RH 7.3), but I'm a Linux newbie. Is this the way to get Zope to start on boot? If so, why doesn't it seem to work? Do I need to install / run as root? I know there are other ways to start Zope on boot, but I wonder if adding this parameter to my start script would work somehow. I did add the argument ('-Z1' and '-Z 1') to my start script, but Zope doesn't start upon rebooting.
Thanks in advance, Jon Whitener Detroit
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Dylan Reinhardt -
Jon Whitener