Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- supervisord-nginx:
- supervisord.running:
- - name: nginx
- - user: {{ pillar['user'] }}
- - conf_file: /etc/supervisor/conf.d/nginx.conf
- - update: True
- - restart: True
- - require:
- - pkg: supervisor
- - watch:
- - file: /etc/nginx/sites-enabled/mysite.conf
- - file: /etc/nginx/sites-enabled/default
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [program:nginx]
- command = nginx
- directory = /usr/bin
- user = {{ pillar['user'] }}
- autostart = true
- autorestart = true
- redirect_stderr = True
- stdout_logfile = /var/log/supervisor/dekker_nginx.log
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ==> default: [INFO ] Executing command '/usr/bin/supervisorctl -c /etc/supervisor/conf.d/nginx.conf start nginx' in directory '/root'
- ==> default: [ERROR ] Command '/usr/bin/supervisorctl -c /etc/supervisor/conf.d/nginx.conf start nginx' failed with return code: 2
- ==> default: [ERROR ] stderr: Error: .ini file does not include supervisorctl section
- ==> default: For help, use /usr/bin/supervisorctl -h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement