From 84f6fc892b1bd2a3668637c21ededfbe4b8162f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= Date: Mon, 11 Jan 2021 18:49:10 +0100 Subject: [PATCH] html5as: Add port listening promise --- software/html5as/buildout.hash.cfg | 2 +- software/html5as/instance_html5as.cfg.in | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/software/html5as/buildout.hash.cfg b/software/html5as/buildout.hash.cfg index 2df062b7d3..5b49db60a3 100644 --- a/software/html5as/buildout.hash.cfg +++ b/software/html5as/buildout.hash.cfg @@ -21,7 +21,7 @@ md5sum = 8a1383f7508a911c0c2d81445b5d4250 [instance_html5as] _update_hash_filename_ = instance_html5as.cfg.in -md5sum = beadeb9706ae44e13e6b60699b0da0d1 +md5sum = 7e178ae20bdbf0ed58e6d8fb54226cdb [template_nginx_conf] _update_hash_filename_ = templates/nginx_conf.in diff --git a/software/html5as/instance_html5as.cfg.in b/software/html5as/instance_html5as.cfg.in index cedbbdeb58..3f23a24ff2 100644 --- a/software/html5as/instance_html5as.cfg.in +++ b/software/html5as/instance_html5as.cfg.in @@ -10,6 +10,7 @@ parts = mime_types launcher nginx-graceful + port-listening-promise publish-connection-information # Define egg directories to be the one from Software Release @@ -160,6 +161,14 @@ mode = 0700 context = section param_html5as html5as +# Port Listening checking promise +[port-listening-promise] +<= monitor-promise-base +module = check_port_listening +name = nginx-port-listening.py +config-hostname = ${html5as:ip} +config-port = ${html5as:port} + # Publish nginx address [publish-connection-information] recipe = slapos.cookbook:publish -- 2.25.1