Commit 9eb3759e authored by Lisa Casino's avatar Lisa Casino

html5as: add logrotate

parent ccdd1cd6
......@@ -21,7 +21,7 @@ md5sum = 6502903b128e75b749e623801f787754
[instance_html5as]
_update_hash_filename_ = instance_html5as.cfg.in
md5sum = 5fb0a31683c684279dcb9fed734ebd28
md5sum = ecd21a7fc94177c0c9cb76215896c4c8
[template_nginx_conf]
_update_hash_filename_ = templates/nginx_conf.in
......
......@@ -13,6 +13,7 @@ parts =
launcher
nginx-graceful
port-listening-promise
logrotate-entry-nginx
publish-connection-information
# Define egg directories to be the one from Software Release
......@@ -176,6 +177,15 @@ context =
[monitor-instance-parameter]
monitor-httpd-port = 8197
# 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