Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
d704c4f0
Commit
d704c4f0
authored
Apr 12, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5testnode: restart on config change
parent
eb7a74b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
software/erp5testnode/buildout.hash.cfg
software/erp5testnode/buildout.hash.cfg
+1
-1
software/erp5testnode/instance-default.cfg
software/erp5testnode/instance-default.cfg
+12
-4
No files found.
software/erp5testnode/buildout.hash.cfg
View file @
d704c4f0
...
@@ -18,4 +18,4 @@ md5sum = 307663d73ef3ef94b02567ecd322252e
...
@@ -18,4 +18,4 @@ md5sum = 307663d73ef3ef94b02567ecd322252e
[template-default]
[template-default]
filename = instance-default.cfg
filename = instance-default.cfg
md5sum =
3c2420de64f079b3b3231dfbff1633b5
md5sum =
2cf79fccd2e2a01c7526c7ac1b5dbaa8
software/erp5testnode/instance-default.cfg
View file @
d704c4f0
...
@@ -18,7 +18,7 @@ parts =
...
@@ -18,7 +18,7 @@ parts =
resiliency-exclude-file
resiliency-exclude-file
shellinabox-frontend-reload
shellinabox-frontend-reload
promises
promises
[monitor-publish]
[monitor-publish]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
url = $${shellinabox-frontend:url}
url = $${shellinabox-frontend:url}
...
@@ -28,7 +28,7 @@ frontend-url = $${testnode-frontend:connection-secure_access}
...
@@ -28,7 +28,7 @@ frontend-url = $${testnode-frontend:connection-secure_access}
recipe = slapos.cookbook:generate.password
recipe = slapos.cookbook:generate.password
storage-path = $${buildout:directory}/.password
storage-path = $${buildout:directory}/.password
[testnode]
[testnode
-bin
]
recipe = slapos.cookbook:erp5testnode
recipe = slapos.cookbook:erp5testnode
slapos-directory = $${directory:slapos}
slapos-directory = $${directory:slapos}
working-directory = $${directory:testnode}
working-directory = $${directory:testnode}
...
@@ -65,7 +65,7 @@ httpd-key-file = $${rootdirectory:etc}/httpd-private.key
...
@@ -65,7 +65,7 @@ httpd-key-file = $${rootdirectory:etc}/httpd-private.key
configuration-file = $${rootdirectory:etc}/erp5testnode.cfg
configuration-file = $${rootdirectory:etc}/erp5testnode.cfg
log-file = $${basedirectory:log}/erp5testnode.log
log-file = $${basedirectory:log}/erp5testnode.log
wrapper = $${b
asedirectory:services}/erp5testnod
e
wrapper = $${b
uildout:bin-directory}/erp5testnode-servic
e
# Binaries
# Binaries
apache-binary = ${apache:location}/bin/httpd
apache-binary = ${apache:location}/bin/httpd
...
@@ -73,6 +73,14 @@ apache-modules-dir = ${apache:location}/modules
...
@@ -73,6 +73,14 @@ apache-modules-dir = ${apache:location}/modules
apache-mime-file = ${apache:location}/conf/mime.types
apache-mime-file = ${apache:location}/conf/mime.types
apache-htpasswd = ${apache:location}/bin/htpasswd
apache-htpasswd = ${apache:location}/bin/htpasswd
[testnode]
# wrapper over erp5testnode which restarts the service when configuration changed
recipe = slapos.cookbook:wrapper
wrapper-path = $${basedirectory:services}/erp5testnode
command-line = $${testnode-bin:wrapper}
hash-existing-files =
$${testnode-bin:wrapper}
$${testnode-bin:configuration-file}
[shell-environment]
[shell-environment]
shell = ${bash:location}/bin/bash
shell = ${bash:location}/bin/bash
...
@@ -129,7 +137,7 @@ pidfile = $${basedirectory:run}/$${:_buildout_section_name_}.pid
...
@@ -129,7 +137,7 @@ pidfile = $${basedirectory:run}/$${:_buildout_section_name_}.pid
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
wrapper-path = $${basedirectory:services}/$${:_buildout_section_name_}
wrapper-path = $${basedirectory:services}/$${:_buildout_section_name_}
command-line =
command-line =
${bash:location}/bin/bash -c
${bash:location}/bin/bash -c
"kill -s USR1 $$(${coreutils:location}/bin/cat $${shellinabox-frontend:pidfile}) \
"kill -s USR1 $$(${coreutils:location}/bin/cat $${shellinabox-frontend:pidfile}) \
&& ${coreutils:location}/bin/sleep infinity"
&& ${coreutils:location}/bin/sleep infinity"
hash-files =
hash-files =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment