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
Léo-Paul Géneau
slapos
Commits
5f3614c1
Commit
5f3614c1
authored
Jan 11, 2021
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
html5as: Add graceful restart, nginx port is a parameter
parent
7427d438
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
software/html5as/buildout.hash.cfg
software/html5as/buildout.hash.cfg
+6
-2
software/html5as/instance.cfg.in
software/html5as/instance.cfg.in
+1
-0
software/html5as/instance_html5as.cfg.in
software/html5as/instance_html5as.cfg.in
+12
-1
software/html5as/software.cfg
software/html5as/software.cfg
+4
-0
software/html5as/templates/graceful.in
software/html5as/templates/graceful.in
+6
-0
No files found.
software/html5as/buildout.hash.cfg
View file @
5f3614c1
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
[template-cfg]
[template-cfg]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
9b8dd44e9a802648840a7116dea05b95
md5sum =
c52c8507608873e03b7a414112d81e91
[instance_html5as]
[instance_html5as]
_update_hash_filename_ = instance_html5as.cfg.in
_update_hash_filename_ = instance_html5as.cfg.in
md5sum =
ea736fd96ca62b388e036ae6dbaeb73d
md5sum =
54fb9fac7a171fdc1300308116e8b224
[template_nginx_conf]
[template_nginx_conf]
_update_hash_filename_ = templates/nginx_conf.in
_update_hash_filename_ = templates/nginx_conf.in
...
@@ -38,3 +38,7 @@ md5sum = 4ef94a7b458d885cd79ba0b930a5727e
...
@@ -38,3 +38,7 @@ md5sum = 4ef94a7b458d885cd79ba0b930a5727e
[template_index_html]
[template_index_html]
_update_hash_filename_ = templates/index.html.in
_update_hash_filename_ = templates/index.html.in
md5sum = d57cb01df5941e139b02a2f7bdabcdc8
md5sum = d57cb01df5941e139b02a2f7bdabcdc8
[template_graceful]
_update_hash_filename_ = templates/graceful.in
md5sum = 1c0ee16966e1fcdb3fd11c09f12ee2b2
software/html5as/instance.cfg.in
View file @
5f3614c1
...
@@ -15,6 +15,7 @@ template_nginx_conf = {{ template_nginx_conf_target }}
...
@@ -15,6 +15,7 @@ template_nginx_conf = {{ template_nginx_conf_target }}
template_mime_types = {{ template_mime_types_target }}
template_mime_types = {{ template_mime_types_target }}
template_launcher = {{ template_launcher_target }}
template_launcher = {{ template_launcher_target }}
template_index_html = {{ template_index_html_target }}
template_index_html = {{ template_index_html_target }}
template_graceful = {{ template_graceful_target }}
[instance-html5as]
[instance-html5as]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/html5as/instance_html5as.cfg.in
View file @
5f3614c1
...
@@ -9,6 +9,7 @@ parts =
...
@@ -9,6 +9,7 @@ parts =
downloader
downloader
mime_types
mime_types
launcher
launcher
nginx-graceful
publish-connection-information
publish-connection-information
# Define egg directories to be the one from Software Release
# Define egg directories to be the one from Software Release
...
@@ -71,7 +72,7 @@ nb_workers = 2
...
@@ -71,7 +72,7 @@ nb_workers = 2
# Network
# Network
ip = ${slap-network-information:global-ipv6}
ip = ${slap-network-information:global-ipv6}
port =
8081
port =
${slap-parameter:port}
access_url = http://[${:ip}]:${:port}
access_url = http://[${:ip}]:${:port}
# Paths
# Paths
...
@@ -147,6 +148,15 @@ rendered = ${directory:srv}/index.html
...
@@ -147,6 +148,15 @@ rendered = ${directory:srv}/index.html
context =
context =
key title slap-parameter:title
key title slap-parameter:title
### Nginx Graceful
[nginx-graceful]
recipe = slapos.recipe.template:jinja2
template = {{ parameter_list['template_graceful'] }}
rendered = ${basedirectory:script}/nginx-graceful
mode = 0700
context =
section param_html5as html5as
# Publish nginx address
# Publish nginx address
[publish-connection-information]
[publish-connection-information]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
...
@@ -156,3 +166,4 @@ title = Title ${slap-parameter:title}!
...
@@ -156,3 +166,4 @@ title = Title ${slap-parameter:title}!
[slap-parameter]
[slap-parameter]
title =
title =
download_url =
download_url =
port = 8081
software/html5as/software.cfg
View file @
5f3614c1
...
@@ -41,6 +41,7 @@ context =
...
@@ -41,6 +41,7 @@ context =
key template_launcher_target template_launcher:target
key template_launcher_target template_launcher:target
key template_instance_html5as_target instance_html5as:target
key template_instance_html5as_target instance_html5as:target
key template_index_html_target template_index_html:target
key template_index_html_target template_index_html:target
key template_graceful_target template_graceful:target
# Have one shared section to define the default behaviour to download
# Have one shared section to define the default behaviour to download
# templates. Sections inheriting from this one won't need to redefine
# templates. Sections inheriting from this one won't need to redefine
...
@@ -68,6 +69,9 @@ mode = 0644
...
@@ -68,6 +69,9 @@ mode = 0644
[template_index_html]
[template_index_html]
<= download-base
<= download-base
[template_graceful]
<= download-base
# Pin versions of eggs used that are not already pinned by stack/slapos.cfg
# Pin versions of eggs used that are not already pinned by stack/slapos.cfg
[versions]
[versions]
slapos.recipe.template = 4.4
slapos.recipe.template = 4.4
software/html5as/templates/graceful.in
0 → 100644
View file @
5f3614c1
#! {{ param_html5as['path_shell'] }}
# BEWARE: This file is operated by slapos node
# BEWARE: It will be overwritten automatically
# Run graceful
exec kill -s SIGHUP $(cat {{ param_html5as['path_pid'] }})
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