Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/supervisorctl/templates/supervisord.conf

raw
1 {#
2 Copyright (c) Ansible Project
3 GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 SPDX-License-Identifier: GPL-3.0-or-later
5 #}
6
7 [supervisord]
8 pidfile={{ remote_dir }}/supervisord.pid
9 logfile={{ remote_dir }}/supervisord.log
10
11 [program:py1]
12 command={{ ansible_facts.python.executable }} -i -u -
13 user={{ ansible_facts.user_id }}
14 autostart=false
15 autorestart=false
16 stdout_logfile={{ remote_dir }}/py1.log
17 redirect_stderr=yes
18
19 [program:py2]
20 command={{ ansible_facts.python.executable }} -i -u -
21 user={{ ansible_facts.user_id }}
22 autostart=false
23 autorestart=false
24 stdout_logfile={{ remote_dir }}/py2.log
25 redirect_stderr=yes
26
27 [group:pys]
28 programs=py1,py2
29
30 [unix_http_server]
31 file={{ supervisord_sock_path.path }}/supervisord.sock
32 {% if credentials.username is defined and credentials.username|default(false, boolean=true) %}
33 username = {{ credentials.username }}
34 password = {{ credentials.password }}
35 {% endif %}
36
37 [inet_http_server]
38 port=127.0.0.1:9001
39 {% if credentials.username is defined and credentials.username|default(false, boolean=true) %}
40 username = {{ credentials.username }}
41 password = {{ credentials.password }}
42 {% endif %}
43
44 [supervisorctl]
45 serverurl=unix://{{ supervisord_sock_path.path }}/supervisord.sock
46
47 [rpcinterface:supervisor]
48 supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface