Commit f9fad91e authored by Julien Muchembled's avatar Julien Muchembled

re6stnet: logrotate HTTP requests to the registry

parent 9278e73e
......@@ -18,7 +18,7 @@ md5sum = 57ddaa585f4755f8e8d1613e5321eefc
[template-re6stnet]
filename = instance-re6stnet.cfg.in
md5sum = afa3bc5d61b46b244cac6f5e5f8c9441
md5sum = dd9b982473410538cd9532a5e55e2de6
[template-apache-conf]
filename = apache.conf.in
......
......@@ -108,6 +108,10 @@ wrapper-path = ${directory:services}/re6st-registry
pidfile = ${directory:run}/registry.pid
command-line = {{ bin_directory }}/re6st-registry @${re6st-registry-conf:output}
hash-files = ${re6st-registry-conf:output}
redirect-signal = USR1
# HTTP requests are logged to stderr
redirect-stdout = ${re6stnet-dirs:log}/access.log
redirect-stderr = ${:redirect-stdout}
[cron-entry-re6st-backup]
recipe = slapos.cookbook:cron.d
......@@ -154,7 +158,7 @@ command = {{ python_bin }} ${re6st-registry:manager-wrapper}
[logrotate-entry-re6stnet]
< = logrotate-entry-base
name = re6stnet
log = ${re6st-registry-conf-dict:logfile}
log = ${re6st-registry-conf-dict:logfile} ${re6st-registry-wrapper:redirect-stdout}
post = [ ! -s ${re6st-registry-wrapper:pidfile} ] || {{ bin_directory }}/slapos-kill --pidfile ${re6st-registry-wrapper:pidfile} -s USR1
[port-redirection]
......
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