Commit d56155bd by John Jarvis

adding supervisor cfg

parent 4e6e2680
...@@ -22,5 +22,5 @@ supervisor_venv_bin: "{{ supervisor_venv_dir }}/bin" ...@@ -22,5 +22,5 @@ supervisor_venv_bin: "{{ supervisor_venv_dir }}/bin"
# which by default is set to www-data in # which by default is set to www-data in
# the common role # the common role
supervisor_user: "{{ common_web_user }}" supervisor_user: "{{ common_web_user }}"
edxapp_log_dir: "{{ log_dir }}/supervisor" supervisor_log_dir: "{{ log_dir }}/supervisor"
supervisor_cfg: "{{ supervisor_app_dir }}/supervisord.conf" supervisor_cfg: "{{ supervisor_app_dir }}/supervisord.conf"
; supervisor config file ; supervisor config file
[unix_http_server] [unix_http_server]
file=/var/run//supervisor.sock ; (the path to the socket file) file={{ supervisor_data_dir }}/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700) chmod=0700 ; sockef file mode (default 0700)
[supervisord] [supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) logfile={{ supervisor_log_dir }}/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP) childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
...@@ -25,5 +25,5 @@ serverurl=unix:///var/run//supervisor.sock ; use a unix:// URL for a unix socke ...@@ -25,5 +25,5 @@ serverurl=unix:///var/run//supervisor.sock ; use a unix:// URL for a unix socke
; include files themselves. ; include files themselves.
[include] [include]
files = /etc/supervisor/conf.d/*.conf files = {{ supervisor_cfg_dir }}/*.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment