Commit 8b8afc35 authored by Alain Takoudjou's avatar Alain Takoudjou

logrotate stack: rotate cron log

parent 2ff5c570
......@@ -11,7 +11,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}.in
rendered = ${buildout:directory}/${:filename}
filename = instance-logrotate-base.cfg
md5sum = af19ff0c7817df85987c69738fb083f2
md5sum = 4f940a5b5a6abac039738b45633c709c
context =
key dcron_location dcron:location
key gzip_location gzip:location
......
[buildout]
parts =
cron-entry-logrotate
logrotate-entry-cron
[cron]
recipe = slapos.cookbook:cron
......@@ -34,6 +35,16 @@ name = logrotate
frequency = 0 0 * * *
command = ${logrotate:wrapper}
[logrotate-entry-base]
recipe = slapos.cookbook:logrotate.d
logrotate-entries = ${logrotate:logrotate-entries}
backup = ${logrotate-directory:backup}
[logrotate-entry-cron]
<= logrotate-entry-base
name = crond
log = ${cron-simplelogger:log}
[logrotate-directory]
recipe = slapos.cookbook:mkdirectory
cron-entries = ${:etc}/cron.d
......
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