[Zope] Restarting Zope after shut-down / crash?

Jon Whitener wmmail@twmi.rr.com
Mon, 04 Nov 2002 12:14:21 -0500


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