plone / plone.recipe.zeoserver

zc.buildout recipe creating and configuring a ZODB zeo server
https://pypi.org/project/plone.recipe.zeoserver
3 stars 13 forks source link

Start ZEO in "console" mode #37

Open avoinea opened 5 years ago

avoinea commented 5 years ago

Unfortunately there is no console equivalent like we have for Plone instance:

bin/instance help console
console -- Run the program in the console.
    In contrast to foreground this does not turn on debug mode.

ZeoServer available commands:

bin/zeo help

Documented commands (type help <topic>):
========================================
fg          help  logreopen  reopen_transcript  show   status  wait
foreground  kill  logtail    restart            start  stop

This make it very difficult to start ZEO server in foreground (useful within Docker containers) and also have the logs redirected to STDOUT/STDERR

Expected behavior:

$ bin/zeoserver console

equivalent

$ bin/zeoserver start
$ bin/zeoserver logtail

SIGTERM (Ctrl+C) should stop ZEO gracefully (equivalent bin/zeoserver stop)