SHOW:
|
|
- or go back to the newest paste.
1 | supervisord-nginx: | |
2 | supervisord.running: | |
3 | - name: nginx | |
4 | - user: {{ pillar['user'] }} | |
5 | - conf_file: /etc/supervisor/conf.d/nginx.conf | |
6 | - update: True | |
7 | - restart: True | |
8 | - require: | |
9 | - pkg: supervisor | |
10 | - watch: | |
11 | - file: /etc/nginx/sites-enabled/mysite.conf | |
12 | - file: /etc/nginx/sites-enabled/default | |
13 | ||
14 | ||
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
16 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
17 | ||
18 | ||
19 | [program:nginx] | |
20 | command = nginx | |
21 | directory = /usr/bin | |
22 | user = {{ pillar['user'] }} | |
23 | autostart = true | |
24 | autorestart = true | |
25 | redirect_stderr = True | |
26 | stdout_logfile = /var/log/supervisor/dekker_nginx.log | |
27 | ||
28 | ||
29 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
30 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
31 | ||
32 | ||
33 | - | ==> default: [INFO ] Executing command '/usr/bin/supervisorctl -c /etc/supervisor/conf.d/dekker.conf start dekker' in directory '/root' |
33 | + | ==> default: [INFO ] Executing command '/usr/bin/supervisorctl -c /etc/supervisor/conf.d/nginx.conf start nginx' in directory '/root' |
34 | - | ==> default: [ERROR ] Command '/usr/bin/supervisorctl -c /etc/supervisor/conf.d/dekker.conf start dekker' failed with return code: 2 |
34 | + | ==> default: [ERROR ] Command '/usr/bin/supervisorctl -c /etc/supervisor/conf.d/nginx.conf start nginx' failed with return code: 2 |
35 | ==> default: [ERROR ] stderr: Error: .ini file does not include supervisorctl section | |
36 | - | ==> default: For help, use /usr/bin/supervisorctl -h |
36 | + | ==> default: For help, use /usr/bin/supervisorctl -h |