From 8ea37c14df59f588a576b5880c84e8c67430abf9 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 23 Oct 2020 19:28:36 +0200 Subject: [PATCH] Wait for readiness. Fixes #16. --- roles/dovecot/handlers/main.yml | 4 ++-- roles/haproxy/handlers/main.yml | 5 ++++- roles/openntpd/handlers/main.yml | 4 ++-- roles/postfix/handlers/main.yml | 5 ++++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/roles/dovecot/handlers/main.yml b/roles/dovecot/handlers/main.yml index f28cc64..a2c707e 100644 --- a/roles/dovecot/handlers/main.yml +++ b/roles/dovecot/handlers/main.yml @@ -8,7 +8,7 @@ command: s6-svc -h /run/service/dovecot - name: Restart Dovecot - command: s6-svc -wR -T 5000 /run/service/dovecot + command: s6-svc -wR -T 5000 -ru /run/service/dovecot - name: Restart Dovecot log - command: s6-svc -wR -T 5000 /run/service/dovecot-log + command: s6-svc -wR -T 5000 -ru /run/service/dovecot-log diff --git a/roles/haproxy/handlers/main.yml b/roles/haproxy/handlers/main.yml index 732e514..e69b499 100644 --- a/roles/haproxy/handlers/main.yml +++ b/roles/haproxy/handlers/main.yml @@ -5,7 +5,10 @@ state: reloaded - name: Restart HAProxy - command: s6-svc -t /run/service/haproxy + command: s6-svc -wU -T 5000 -ru /run/service/haproxy + +- name: Restart HAProxy log + command: s6-svc -wU -T 5000 -ru /run/service/haproxy-log - name: Reload HAProxy command: s6-svc -2 /run/service/haproxy diff --git a/roles/openntpd/handlers/main.yml b/roles/openntpd/handlers/main.yml index ca459b4..cbeb514 100644 --- a/roles/openntpd/handlers/main.yml +++ b/roles/openntpd/handlers/main.yml @@ -5,7 +5,7 @@ state: reloaded - name: Restart OpenNTPD - command: s6-svc -wR -T 5000 -t /run/service/openntpd + command: s6-svc -wR -T 5000 -ru /run/service/openntpd - name: Restart OpenNTPD log - command: s6-svc -wR -T 5000 -t /run/service/openntpd-log + command: s6-svc -wR -T 5000 -ru /run/service/openntpd-log diff --git a/roles/postfix/handlers/main.yml b/roles/postfix/handlers/main.yml index 7ee8c35..c6005b8 100644 --- a/roles/postfix/handlers/main.yml +++ b/roles/postfix/handlers/main.yml @@ -5,7 +5,10 @@ state: reloaded - name: Restart Postfix - command: s6-svc -t /run/service/postfix + command: s6-svc -wU -T 5000 -ru /run/service/postfix + +- name: Restart Postfix log + command: s6-svc -wU -T 5000 -ru /run/service/postfix-log - name: Reload Postfix command: s6-svc -h /run/service/postfix