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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos
Commits
381c6736
Commit
381c6736
authored
Sep 22, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: restore monitor httpd promise
parent
9fca331c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
39 deletions
+4
-39
stack/monitor/buildout.cfg
stack/monitor/buildout.cfg
+1
-1
stack/monitor/instance-monitor.cfg.jinja2.in
stack/monitor/instance-monitor.cfg.jinja2.in
+3
-38
No files found.
stack/monitor/buildout.cfg
View file @
381c6736
...
@@ -89,7 +89,7 @@ recipe = slapos.recipe.template:jinja2
...
@@ -89,7 +89,7 @@ recipe = slapos.recipe.template:jinja2
filename = template-monitor.cfg
filename = template-monitor.cfg
template = ${:_profile_base_location_}/instance-monitor.cfg.jinja2.in
template = ${:_profile_base_location_}/instance-monitor.cfg.jinja2.in
rendered = ${buildout:directory}/template-monitor.cfg
rendered = ${buildout:directory}/template-monitor.cfg
md5sum =
1c731d879992c218bc6823e88c33f3b3
md5sum =
794e7fd74bca86ea5e74a29cde21b836
context =
context =
key apache_location apache:location
key apache_location apache:location
key gzip_location gzip:location
key gzip_location gzip:location
...
...
stack/monitor/instance-monitor.cfg.jinja2.in
View file @
381c6736
...
@@ -229,49 +229,14 @@ mode = 700
...
@@ -229,49 +229,14 @@ mode = 700
context =
context =
raw python_executable {{ python_executable }}
raw python_executable {{ python_executable }}
[monitor-promise]
[monitor-
httpd-
promise]
recipe = slapos.cookbook:check_url_available
recipe = slapos.cookbook:check_url_available
path = ${directory:promises}/monitor
path = ${directory:promises}/monitor
-httpd-listening-on-tcp
url = ${monitor-httpd-conf-parameter:url}
url = ${monitor-httpd-conf-parameter:url}
check-secure = 1
check-secure = 1
dash_path = {{ dash_executable_location }}
dash_path = {{ dash_executable_location }}
curl_path = {{ curl_executable_location }}
curl_path = {{ curl_executable_location }}
[promise-parameters-dict]
[monitor-base-promise-conf]
recipe = slapos.recipe.template:jinja2
template = {{ monitor_service_template_conf }}
public-path =
context =
key name :name
key script_path :executable-file
key title :title
key frequency :frequency
key public_path_list :public-path
key private_path_list :public-path
section parameters promise-parameters-dict
# Create monitor directory for this promise
[promise-directory]
recipe = slapos.cookbook:mkdirectory
monitor-httpd = ${monitor-directory:public}/monitor-httpd
[monitor-monitor-promise]
recipe = slapos.cookbook:wrapper
pid-file = ${monitor-directory:pids}/monitor-promise.pid
status-file = ${promise-directory:monitor-httpd}/status.json
command-line = ${monitor-run-promise:rendered} ${:pid-file} ${:status-file} ${monitor-promise:path}
wrapper-path = ${monitor-directory:promises}/monitor-httpd
[conf-monitor-promise]
<= monitor-base-promise-conf
rendered = ${monitor-directory:services-conf}/monitor-httpd-promise.conf
name = monitor-httpd-promise
title = Monitor promise httpd
executable-file = ${monitor-monitor-promise:wrapper-path}
frequency = */5 * * * *
[monitor-publish]
[monitor-publish]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
monitor_url_v6 = ${monitor-httpd-conf-parameter:url}
monitor_url_v6 = ${monitor-httpd-conf-parameter:url}
...
@@ -291,5 +256,5 @@ parts =
...
@@ -291,5 +256,5 @@ parts =
monitor-conf
monitor-conf
start-monitor
start-monitor
ca-httpd
ca-httpd
# conf-monitor
-promise
monitor-httpd
-promise
monitor-publish
monitor-publish
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