Преглед изворни кода

more resilient supervisorctl reload, log exit status

tags/v1.5.4
Jonathan Cobb пре 4 година
родитељ
комит
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

Loading…
Откажи
Сачувај