diff options
Diffstat (limited to 'net/haproxy')
-rw-r--r-- | net/haproxy/files/acme.hotplug | 4 | ||||
-rw-r--r-- | net/haproxy/files/haproxy.init | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/haproxy/files/acme.hotplug b/net/haproxy/files/acme.hotplug index 5a4dc5cdd..726d2b216 100644 --- a/net/haproxy/files/acme.hotplug +++ b/net/haproxy/files/acme.hotplug @@ -6,7 +6,3 @@ issued|renewed) >"/etc/ssl/acme/$main_domain.combined.cer" ;; esac - -if [ "$ACTION" = renewed ]; then - /etc/init.d/haproxy reload -fi diff --git a/net/haproxy/files/haproxy.init b/net/haproxy/files/haproxy.init index 01d80d781..51c0ebb65 100644 --- a/net/haproxy/files/haproxy.init +++ b/net/haproxy/files/haproxy.init @@ -18,6 +18,10 @@ start_service() { procd_close_instance } +service_triggers() { + procd_add_raw_trigger acme.renew 5000 /etc/init.d/haproxy reload +} + extra_command "check" "Check haproxy config" check() { $HAPROXY_BIN -c -q -V -f $HAPROXY_CONFIG |