[Zope] Getting zctl.py To Start ftpd-- Was: Is Anyone Listening?? Port 8021 Isn't!

Doug Hellmann doug@hellfly.net
Thu, 3 Oct 2002 08:45:36 -0400


On Wednesday 02 October 2002 8:53 pm, beno wrote:
> It (finally) strikes me that the reason I can't get my ftpd started on port
> 8021 is because I'm using InstanceHome and zctl.py, not the standard
> *start* script in the distro. So...How do I get ftpd started from zctl.py?

The zctl.py script just calls z2.py.  You can pass options to z2.py by 
defining ZOPE_OPTS in zope.conf, inside your InstanceHome.

I've got an ftp service running on my site, and here's my zope.conf:

$ cat zope.conf
"""zope.conf - zctl.py Zope/ZEO startup settings

    This is execfile'd in the context of the zctl.py script.  Here are a
    few handy python var settings (see 'zctl.py for more):
    HERE - the absoluted path of zctl.py's working directory
    pjoin - os.path.join
"""
## Zope ##

ZOPE_HOME = pjoin(HERE, '..', 'Zope-2.5.1-src')
ZOPE_OPTS = '-p -'
ZOPE_PORT = 8000
ZOPE_LOG = pjoin(HERE, 'var', 'debug.log')
ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:"
                                 + pjoin(HERE, '..', 'OtherProducts')
                                 + ":%(INSTANCE_PRODUCTS)s")
## ZEO ##
# 'localhost' will be used if ZEO_SERVER_NAME has no setting.
#ZEO['ZEO_SERVER_NAME'] = 'www.zeohost.com'
# You must specify a ZEO_SERVER_PORT.
ZEO['ZEO_SERVER_PORT'] = 8500
ZEO['STUPID_LOG_FILE'] = pjoin(HERE, 'var', 'ZEO_Server.log')
ZEO_WAIT_BAILOUT = 200 # Don't try for more than num seconds

Hope that helps.

Doug