[Plone-IT] zeopack non riconosce tutte le opzioni

Mauro Amico mauro.amico a gmail.com
Lun 9 Lug 2012 21:18:27 UTC


Quella è la buona pratica, però se vuoi (per qualche motivo) lo zeopack
così come ZODB3 l'ha fatto, basta che metti
nella tua recipe di zeoserver "zeopack ="

[zeoserver]
...
zeopack =

e aggiungi una recipe per lo zeopack

[zeopack]
recipe = zc.recipe.egg
eggs = ZODB3
scripts = zeopack

a questo punto:

$ bin/zeopack
Usage: zeopack [options] [servers]

Pack one or more storages hosted by ZEO servers.

The positional arguments specify 0 or more tcp servers to pack, where
each is of the form:

    host:port[:name]

Options:
  -d DAYS, --days=DAYS  Pack objects that are older than this number of days
  -t TIME, --time=TIME  Time of day to pack to of the form: HH[:MM[:SS]].
                        Defaults to current time.
  -u UNIX_SOCKETS, --unix=UNIX_SOCKETS
                        A unix-domain-socket server to connect to, of the
                        form: path[:name]
  -h HOST               Deprecated: Used with the -p and -S options,
specified
                        the host to connect to.
  -p PORT               Deprecated: Used with the -h and -S options,
specifies
                        the port to connect to.
  -S NAME               Deprecated: Used with the -h and -p, options, or
with
                        the -U option specified the storage name to use.
                        Defaults to 1.
  -U UNIX               Deprecated: Used with the -S option, Unix-domain
                        socket to connect to.

mauro.

2012/7/9 Alessandro Pisa <alessandro.pisa a gmail.com>

> 2012/7/9 Massimiliano De Ruosi <max.deruosi a uniud.it>:
> > Ma (mia curiosità), c'è un motivo per questa scelta di creare un
> > wrapper con così pochi parametri, lasciando gli altri configurabili solo
> da
> > buildout?
> >
>
> Ciao,
>     il motivo credo sia legato al fatto che anche la porta
> dell'istanza viene settata da buildout.
>
> Nella gran parte dei casi lo script zeopack viene lanciato da una
> procedura in cron, se cambi la porta dell'istanza vo-rrai cambiare
> anche contemporaneamente quella dello script zeopack senza andare a
> editare a mano il file di crontab.
>
> Ovviamente questo e' solo un esempio in cui questa risulta essere una
> buona pratica.
> --
> http://alepisa.blogspot.com
> Esalando Prassi
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-plone-it
> http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20120709/4a3e7393/attachment-0001.html>


Maggiori informazioni sulla lista Plone-IT