Commit efa8c298 authored by Jérome Perrin's avatar Jérome Perrin

testnode: restart testnode when configuration changes

parent 9bd27b70
......@@ -18,4 +18,4 @@ md5sum = 307663d73ef3ef94b02567ecd322252e
[template-default]
filename = instance-default.cfg
md5sum = 6e263ceafff581031d9d7aa2e001c43e
md5sum = 508799a72798f25c00d7f1106ada659c
......@@ -8,7 +8,7 @@ offline = true
extends = ${monitor2-template:rendered}
parts =
testnode
testnode-service
certificate-authority
ca-shellinabox
ca-httpd-testnode
......@@ -64,7 +64,7 @@ httpd-key-file = $${rootdirectory:etc}/httpd-private.key
configuration-file = $${rootdirectory:etc}/erp5testnode.cfg
log-file = $${basedirectory:log}/erp5testnode.log
wrapper = $${basedirectory:services}/erp5testnode
wrapper = $${rootdirectory:bin}/erp5testnode
# Binaries
apache-binary = ${apache:location}/bin/httpd
......@@ -72,6 +72,14 @@ apache-modules-dir = ${apache:location}/modules
apache-mime-file = ${apache:location}/conf/mime.types
apache-htpasswd = ${apache:location}/bin/htpasswd
[testnode-service]
recipe = slapos.cookbook:wrapper
wrapper-path = $${basedirectory:services}/$${:_buildout_section_name_}
command-line = $${testnode:wrapper}
hash-files =
$${:command-line}
$${testnode:configuration-file}
[shell-environment]
shell = ${bash:location}/bin/bash
......
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