Commit d3988337 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5.zeo: Move variable-length crontab command to script.

When there are many ZODBs, this command can exceed crond's maximum 1024
bytes limit.
parent 32cb7a4e
......@@ -305,7 +305,7 @@ md5sum = 7735d535aa34dfdc18a776b80bc0ca3d
[template-zeo]
< = download-base
filename = instance-zeo.cfg.in
md5sum = 6b99d2712aff3a8a717400a557dc5191
md5sum = 7bbb690cb2ea38cd2aa84c8a79c50399
[template-zope]
< = download-base
......
......@@ -178,7 +178,12 @@ recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
name = purge-repozo-fsindex
time = ${cron-entry-tidstorage-backup:time}
command = {{ parameter_dict['findutils-location'] }}/bin/find {% for backup_directory in backup_directory_list %}'{{ backup_directory.replace("\\", "\\\\").replace("'", "\\'") }}' {% endfor %}-name "????-??-??-??-??-??.index" -daystart -mtime +2 -delete
command = ${cron-script-purge-repozo-fsindex:wrapper-path}
[cron-script-purge-repozo-fsindex]
recipe = slapos.cookbook:wrapper
command-line = "{{ parameter_dict['findutils-location'] }}/bin/find" {% for backup_directory in backup_directory_list %}'{{ backup_directory.replace("\\", "\\\\").replace("'", "\\'") }}' {% endfor %}-name "????-??-??-??-??-??.index" -daystart -mtime +2 -delete
wrapper-path = ${directory:bin}/cron-purge-repozo-fsindex
{% endif -%}
[{{ section("logrotate-tidstorage") }}]
......@@ -210,6 +215,7 @@ tidstorage-port = ${tidstorage:port}
[directory]
recipe = slapos.cookbook:mkdirectory
bin = ${buildout:directory}/bin
etc = ${buildout:directory}/etc
services = ${:etc}/run
promises = ${:etc}/promise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment