Commit 13a81682 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add logrotate entry for web-checker.

parent dedf4c4b
...@@ -316,7 +316,7 @@ mode = 640 ...@@ -316,7 +316,7 @@ mode = 640
[template-varnish] [template-varnish]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-varnish.cfg.in url = ${:_profile_base_location_}/instance-varnish.cfg.in
md5sum = 17aee2df57b121343b1fd65f4b51ce80 md5sum = 728650f5d20ad637d8d824d1968865ca
mode = 640 mode = 640
[bt5-repository] [bt5-repository]
......
...@@ -10,6 +10,7 @@ parts = ...@@ -10,6 +10,7 @@ parts =
{% if web_checker_parameter is defined %} {% if web_checker_parameter is defined %}
web-checker web-checker
cron-entry-web-checker cron-entry-web-checker
logrotate-entry-web-checker
{% endif %} {% endif %}
eggs-directory = {{ eggs_directory }} eggs-directory = {{ eggs_directory }}
...@@ -94,6 +95,17 @@ logrotate-entries = ${directory:logrotate-entries} ...@@ -94,6 +95,17 @@ logrotate-entries = ${directory:logrotate-entries}
backup = ${directory:logrotate-backup} backup = ${directory:logrotate-backup}
state-file = ${rootdirectory:srv}/logrotate.status state-file = ${rootdirectory:srv}/logrotate.status
[logrotate-entry-web-checker]
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = web-checker
log = ${web-checker:web-checker-log}
frequency = daily
rotate-num = 30
sharedscripts = true
notifempty = true
create = true
[basedirectory] [basedirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
services = ${rootdirectory:etc}/run services = ${rootdirectory:etc}/run
......
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