Commit 7d6f9e6a by e0d

Changes to redirect the supervisor logs.

parent ea2036ff
...@@ -141,6 +141,15 @@ ...@@ -141,6 +141,15 @@
- install - install
- update - update
- name: common | create supervisor log directoy
file:
path={{notifier_supervisor_log_dest }} mode=2750 state=directory
tags:
- notifier
- install
- update
- ubuntu
- name: notifier | supervisord config for celery workers - name: notifier | supervisord config for celery workers
template: template:
src=etc/supervisor/conf.d/notifier-celery-workers.conf.j2 dest=/etc/supervisor/conf.d/notifier-celery-workers.conf src=etc/supervisor/conf.d/notifier-celery-workers.conf.j2 dest=/etc/supervisor/conf.d/notifier-celery-workers.conf
......
;
; {{ ansible_managed }}
;
[program:notifier-celery-beat] [program:notifier-celery-beat]
command={{ notifier_venv_dir }}/bin/python manage.py celery beat -l DEBUG command={{ notifier_venv_dir }}/bin/python manage.py celery beat -l DEBUG
...@@ -15,11 +18,11 @@ stopsignal=TERM ...@@ -15,11 +18,11 @@ stopsignal=TERM
stopwaitsecs=10 stopwaitsecs=10
user=notifier user=notifier
redirect_stderr=false redirect_stderr=false
stdout_logfile=/tmp/notifier-celery-beat-stdout.log stdout_logfile={{ notifier_supervisor_log_dest }}/notifier-celery-beat-stdout.log
stdout_logfile_maxbytes=1MB stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10 stdout_logfile_backups=10
stdout_capture_maxbytes=1MB stdout_capture_maxbytes=1MB
stderr_logfile=/tmp/notifier-celery-beat-stderr.log stderr_logfile={{notifier_supervisor_log_dest }}/notifier-celery-beat-stderr.log
stderr_logfile_maxbytes=1MB stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10 stderr_logfile_backups=10
stderr_capture_maxbytes=1MB stderr_capture_maxbytes=1MB
......
;
; {{ ansible_managed }}
;
[program:notifier-celery-workers] [program:notifier-celery-workers]
command={{ notifier_venv_dir }}/bin/python manage.py celery worker -l DEBUG command={{ notifier_venv_dir }}/bin/python manage.py celery worker -l DEBUG
...@@ -15,11 +18,11 @@ stopsignal=TERM ...@@ -15,11 +18,11 @@ stopsignal=TERM
stopwaitsecs=10 stopwaitsecs=10
user=notifier user=notifier
redirect_stderr=false redirect_stderr=false
stdout_logfile=/tmp/notifier-celery-workers-stdout.log stdout_logfile={{notifier_supervisor_log_dest }}/notifier-celery-workers-stdout.log
stdout_logfile_maxbytes=1MB stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10 stdout_logfile_backups=10
stdout_capture_maxbytes=1MB stdout_capture_maxbytes=1MB
stderr_logfile=/tmp/notifier-celery-workers-stderr.log stderr_logfile={{notifier_supervisor_log_dest }}/notifier-celery-workers-stderr.log
stderr_logfile_maxbytes=1MB stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10 stderr_logfile_backups=10
stderr_capture_maxbytes=1MB stderr_capture_maxbytes=1MB
......
...@@ -37,6 +37,8 @@ notifier_user_service_http_auth_user: "guido" ...@@ -37,6 +37,8 @@ notifier_user_service_http_auth_user: "guido"
notifier_user_service_http_auth_pass: "vanrossum" notifier_user_service_http_auth_pass: "vanrossum"
notifier_celery_broker_url: "django://" notifier_celery_broker_url: "django://"
notifier_supervisor_log_dest: "/mnt/logs/supervisor"
notifer_requests_ca_bundle: "/etc/ssl/certs/ca-certificates.crt" notifer_requests_ca_bundle: "/etc/ssl/certs/ca-certificates.crt"
notifier_debian_pkgs: notifier_debian_pkgs:
......
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