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
Ophélie Gagnard
slapos
Commits
bc4a4559
Commit
bc4a4559
authored
Apr 30, 2020
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/supervisord: update README
parent
390dc987
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
stack/supervisord/README.rst
stack/supervisord/README.rst
+30
-1
stack/supervisord/supervisord.jinja2.in
stack/supervisord/supervisord.jinja2.in
+2
-2
No files found.
stack/supervisord/README.rst
View file @
bc4a4559
...
@@ -9,7 +9,7 @@ To use:
...
@@ -9,7 +9,7 @@ To use:
* extend ``stack/supervisord/buildout.cfg`` in your software.cfg file.
* extend ``stack/supervisord/buildout.cfg`` in your software.cfg file.
* provide ``supervisord-library:target`` and ``supervisord-conf:target`` to your instance template which require to use supervisord controller.
* provide ``supervisord-library:target`` and ``supervisord-conf:target`` to your instance template which require to use supervisord controller.
* add ``{% import "supervisord
_lib" as supervisord_lib
with context %}`` to instance template which call supervisord library. See example bellow:
* add ``{% import "supervisord
" as supervisord
with context %}`` to instance template which call supervisord library. See example bellow:
**software.cfg**
**software.cfg**
::
::
...
@@ -55,3 +55,32 @@ To use:
...
@@ -55,3 +55,32 @@ To use:
custom-controller-service
custom-controller-service
custom-controller-mariadb
custom-controller-mariadb
Supervisord inside partition
============================
Check supervisord controlled services status:
::
$ instance/slappartXX/bin/custom-controllerctl status
mariadb RUNNING pid 5511, uptime 6:04:54
`supervisord_program` parameters and defaults:
.. code-block:: python
program_dict = {
"name": "NAME",
"command": "WRAPPER_PATH",
"stopwaitsecs": 60,
"environment": ['PATH="/usr/bin/:/partition/bin/:$PATH"', 'MAKEFLAGS="-j2"'],
"autostart": True,
"autorestart": False,
"startsecs": 0,
"startretries": 0,
"stopsignal": "TERM",
"stdout_logfile": "NONE",
"stderr_logfile": "NONE"
}
stack/supervisord/supervisord.jinja2.in
View file @
bc4a4559
...
@@ -58,8 +58,8 @@ template = inline:[program:{{ parameter_dict['name'] }}]
...
@@ -58,8 +58,8 @@ template = inline:[program:{{ parameter_dict['name'] }}]
directory = ${buildout:directory}
directory = ${buildout:directory}
command = {{ parameter_dict['command'] }}
command = {{ parameter_dict['command'] }}
process_name = {{ parameter_dict['name'] }}
process_name = {{ parameter_dict['name'] }}
autostart = {{ parameter_dict.get('autostart',
t
rue) }}
autostart = {{ parameter_dict.get('autostart',
T
rue) }}
autorestart = {{ parameter_dict.get('autorestart',
f
alse) }}
autorestart = {{ parameter_dict.get('autorestart',
F
alse) }}
startsecs = {{ parameter_dict.get('startsecs', 0) }}
startsecs = {{ parameter_dict.get('startsecs', 0) }}
startretries = {{ parameter_dict.get('startretries', 0) }}
startretries = {{ parameter_dict.get('startretries', 0) }}
exitcodes = {{ parameter_dict.get('exitcodes', 0) }}
exitcodes = {{ parameter_dict.get('exitcodes', 0) }}
...
...
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