Переглянути джерело

more resilient supervisorctl reload, log exit status

tags/v1.5.4
Jonathan Cobb 3 роки тому
джерело
коміт
2da627ce48
1 змінених файлів з 4 додано та 1 видалено
  1. +4
    -1
      bubble-server/src/main/resources/ansible/roles/finalizer/tasks/main.yml

+ 4
- 1
bubble-server/src/main/resources/ansible/roles/finalizer/tasks/main.yml Переглянути файл

@@ -78,4 +78,7 @@
# We cannot receive notifications until nginx is running, so start bubble API as the very last step
- name: reload supervisord
shell: |
supervisorctl reload || echo "WARNING: supervisorctl reload exited with $?"
supervisorctl reload \
|| echo "WARNING: supervisorctl reload exited with $?" | tee -a /var/log/bubble/ansible.log \
&& sleep 10s && supervisorctl reload \
|| echo "WARNING: supervisorctl reload exited AGAIN with $?" | tee -a /var/log/bubble/ansible.log

Завантаження…
Відмінити
Зберегти