Commit 7dd1e74a authored by Nirina Malard's avatar Nirina Malard

software/html5as-base: add logrotate

parent 1b5e3a17
......@@ -18,11 +18,11 @@
[template-cfg]
filename = instance.cfg.in
md5sum = 76b0cd254ec7eb97eeadc8129b33c4dc
md5sum = c5197be13b0986a12c31bf670e887f27
[instance_html5as]
_update_hash_filename_ = instance_html5as.cfg.in
md5sum = 9d9ba26bfe1f2697b67339bb2a1a06b0
md5sum = 2f40eba87b668cb3d3b96e5236f161dc
[template_nginx_conf]
_update_hash_filename_ = templates/nginx_conf.in
......
......@@ -15,6 +15,7 @@ parts =
launcher
nginx-graceful
port-listening-promise
logrotate-entry-nginx
publish-connection-information
# Define egg directories to be the one from Software Release
......@@ -183,6 +184,15 @@ config-port = ${html5as:port}
[monitor-instance-parameter]
monitor-httpd-port = {{ parameter_dict['monitor-httpd-port'] }}
# Monitor Stack also provides logrotate stack. We only need to extend
# the logrotate-entry-base defined in instance-logrotate-base.cfg.in .
# More parameters can be added following the logrotate-entry-base section
[logrotate-entry-nginx]
<= logrotate-entry-base
name = nginx
log = ${html5as:path_access_log} ${html5as:path_error_log}
post = kill -USR1 $(cat ${html5as:path_pid})
# Publish nginx address
[publish-connection-information]
recipe = slapos.cookbook:publish
......
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