Commit 5267e9db by e0d

Merge pull request #1603 from edx/e0d/fix-notifier

Fixing process management
parents 0cf0bb15 8efed292
...@@ -90,7 +90,15 @@ ...@@ -90,7 +90,15 @@
file: file:
path="{{ NOTIFIER_HOME }}/.ssh" mode=2700 state=directory owner={{ NOTIFIER_USER }} group={{ NOTIFIER_USER }} path="{{ NOTIFIER_HOME }}/.ssh" mode=2700 state=directory owner={{ NOTIFIER_USER }} group={{ NOTIFIER_USER }}
- name: create service log dir
file: >
path="{{ item }}"
state=directory
owner="syslog"
group="syslog"
with_items:
- "{{ COMMON_LOG_DIR }}/notifier"
- name: write supervisord wrapper for celery workers - name: write supervisord wrapper for celery workers
template: > template: >
src=notifier-celery-workers-supervisor.sh.j2 src=notifier-celery-workers-supervisor.sh.j2
......
...@@ -7,6 +7,7 @@ command={{ NOTIFIER_HOME }}/notifier-celery-workers-supervisor.sh ...@@ -7,6 +7,7 @@ command={{ NOTIFIER_HOME }}/notifier-celery-workers-supervisor.sh
process_name=%(program_name)s process_name=%(program_name)s
numprocs=1 numprocs=1
stopasgroup=true
directory={{ NOTIFIER_CODE_DIR }} directory={{ NOTIFIER_CODE_DIR }}
umask=022 umask=022
autostart=true autostart=true
......
...@@ -7,6 +7,7 @@ command={{ NOTIFIER_HOME }}/notifier-scheduler-supervisor.sh ...@@ -7,6 +7,7 @@ command={{ NOTIFIER_HOME }}/notifier-scheduler-supervisor.sh
process_name=%(program_name)s process_name=%(program_name)s
numprocs=1 numprocs=1
stopasgroup=true
directory={{ NOTIFIER_CODE_DIR }} directory={{ NOTIFIER_CODE_DIR }}
umask=022 umask=022
autostart=true autostart=true
......
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