瀏覽代碼

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

Loading…
取消
儲存