Reference

zope-z2(8)

Zope 2 ZServer start-up file

NAME

zope-z2 - Zope 2 ZServer start-up file

SYNOPSIS

zope-z2 [options] [environment settings]

DESCRIPTION

zope-z2 is the script that starts up a Zope 2 ZServer process. You can modify the configuration of the ZServer process with various command line options. Depending on the options, zope-z2 will detach the Zope process from the terminal, and zope-z2 will return after the process was started.

OPTIONS

-h

    Output this text.

-z path

    The location of the Zope installation. The default is the location of
    this script, /usr/lib/zope.

-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).

-t n

    The number of threads to use, if ZODB3 is used. The default is 4.

-i n

    Set the interpreter check interval. This integer value
    determines how often the interpreter checks for periodic things
    such as thread switches and signal handlers. The Zope default
    is 500, but you may want to experiment with other values that
    may increase performance in your particular environment.

-D

    Run in Zope debug mode. This causes the Zope process not to
    detach from the controlling terminal, and is equivalent to
    supplying the environment variable setting Z_DEBUG_MODE=1

-a ipaddress

    The IP address to listen on. If this is an empty string
    (e.g. -a ''), then all addresses on the machine are used. The
    default is .

-d ipaddress

    IP address of your DNS server. If this is an empty string
    (e.g. -d ''), then IP addresses will not be logged. If you have
    DNS service on your local machine then you can set this to
    127.0.0.1. The default is: .

-u username or uid number

    The username to run ZServer as. You may want to run ZServer as
    a dedicated user. This only works under Unix, and if ZServer
    is started as root, and is required in that case.

-P [ipaddress:]number

    Set the web, ftp and monitor port numbers simultaneously
    as offsets from the number. The web port number will be number+80.
    The FTP port number will be number+21. The monitor port number will
    be number+99.
    The number can be preceded by an IP address followed by a colon
    to specify an address to listen on. This allows different servers
    to listen on different addresses.
    Multiple -P options can be provided to run multiple sets of servers.

-w port

    The Web server (HTTP) port. This defaults to 8080. The
    standard port for HTTP services is 80. If this is a dash
    (e.g. -w -), then HTTP is disabled.
    The number can be preceded by an IP address followed by a colon
    to specify an address to listen on. This allows different servers
    to listen on different addresses.
    Multiple -w options can be provided to run multiple servers.

-W port

    The "WebDAV source" port. If this is a dash (e.g. -w -), then
    "WebDAV source" is disabled. The default is disabled. Note that
    this feature is a workaround for the lack of "source-link" support
    in standard WebDAV clients.
    The port can be preceded by an IP address followed by a colon
    to specify an address to listen on. This allows different servers
    to listen on different addresses.
    Multiple -W options can be provided to run multiple servers.

-C --force-http-connection-close

    If present, this option causes Zope to close all HTTP connections,
    regardless of the 'Connection:' header (or lack of one) sent by
    the client.

-f port

    The FTP port. If this is a dash (e.g. -f -), then FTP
    is disabled. The standard port for FTP services is 21. The
    default is 8021.
    The port can be preceded by an IP address followed by a colon
    to specify an address to listen on. This allows different servers
    to listen on different addresses.
    Multiple -f options can be provided to run multiple servers.

-p path

    Path to the PCGI resource file. The default value is
    Zope.cgi, relative to the Zope location. If this is a dash
    (-p -) or the file does not exist, then PCGI is disabled.

-F path_or_port

    Either a port number (for inet sockets) or a path name (for unix
    domain sockets) for the FastCGI Server. If the flag and value are
    not specified then the FastCGI Server is disabled.

-m port

    The secure monitor server port. If this is a dash
    (-m -), then the monitor server is disabled. The monitor server
    allows interactive Python style access to a running ZServer. To
    access the server see medusa/monitor_client.py or
    medusa/monitor_client_win32.py. The monitor server password is the
    same as the Zope emergency user password set in the 'access'
    file. The default is to not start up a monitor server.
    The port can be preceded by an IP address followed by a colon
    to specify an address to listen on. This allows different servers
    to listen on different addresses.
    Multiple -m options can be provided to run multiple servers.

--icp port

    The ICP port. ICP can be used to distribute load between back-end
    zope servers, if you are using an ICP-aware front-end proxy such
    as Squid.
    The port can be preceded by an IP address followed by a colon
    to specify an address to listen on. This allows different servers
    to listen on different addresses.
    Multiple --icp options can be provided to run multiple servers.

-l path

    Path to the ZServer log file. If this is a relative path then the
    log file will be written to the 'var' directory. The default is
    Z2.log.

-r

    Run ZServer is read-only mode. ZServer won't write anything to disk.
    No log files, no pid files, nothing. This means that you can't do a
    lot of stuff like use PCGI, and zdaemon. ZServer will log hits to
    STDOUT and zLOG will log to STDERR.

-L

    Enable locale (internationalization) support. The value passed for
    this option should be the name of the locale to be used (see your
    operating system documentation for locale information specific to
    your system). If an empty string is passed for this option (-L ''),
    Zope will set the locale to the user's default setting (typically
    specified in the $LANG environment variable). If your Python
    installation does not support the locale module, the requested
    locale is not supported by your system or an empty string was
    passed but no default locale can be found, an error will be raised
    and Zope will not start.

-X

    Disable servers. This might be used to effectively disable all
    default server settings or previous server settings in the option
    list before providing new settings. For example to provide just a
    web server:
      zope-z2 -X -w80

-M file

    Save detailed logging information to the given file.
    This log includes separate entries for:
      - The start of a request,
      - The start of processing the request in an application thread,
      - The start of response output, and
      - The end of the request.

ENVIRONMENT SETTINGS

zope-z2 environment setting are of the form: NAME=VALUE and must be passed as arguments to zope-z2 command, _not_ before the invocation.

NOTE

You *must* use Python 2.1 or later!

AUTHOR

zope-z2 is derived with little modifications from the z2.py script included in the Zope distribution. Zope and z2.py were written by Digital Creations. Zope is distributed under the terms of the Zope Public License (/usr/share/doc/zope/copyright on Debian systems).

The modifications to zope-z2 and the zope-z2 manual page were written by Gregor Hoffleit <[email protected]> for the Debian project and then modified by Luca - De Whiskey's - De Vitis <[email protected]>. Feel free to use, copy and modify the manpage.

The zopectl script and this manual page were written by Gregor Hoffleit <[email protected]> for the Debian project and then modified by Luca - De Whiskey's - De Vitis <[email protected]>. Feel free to use, copy and modify.

History

-D until Debian 3.0 (Woody); -F until Debian 3.0 (Woody); -L until Debian 3.0 (Woody); -P until Debian 3.0 (Woody); -Z until Debian 3.0 (Woody); -a until Debian 3.0 (Woody); -d until Debian 3.0 (Woody); -f until Debian 3.0 (Woody); -h until Debian 3.0 (Woody); -l until Debian 3.0 (Woody); -m until Debian 3.0 (Woody); -p until Debian 3.0 (Woody); -r until Debian 3.0 (Woody); -t until Debian 3.0 (Woody); -u until Debian 3.0 (Woody); -w until Debian 3.0 (Woody); -z until Debian 3.0 (Woody).