From 449f1c6c0c1ab0d41fccab58fca73dd5d09b74f6 Mon Sep 17 00:00:00 2001 From: David Bezemer Date: Sat, 15 Aug 2020 15:25:46 +0200 Subject: [PATCH] Backwards compatible systemctl try-reload Fixes #31 --- SPECS/haproxy.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec index 27eabae..a990ed9 100644 --- a/SPECS/haproxy.spec +++ b/SPECS/haproxy.spec @@ -167,7 +167,7 @@ exit 0 %post %if 0%{?el7} || 0%{?amzn2} || 0%{?el8} %systemd_post %{name}.service -systemctl try-reload-or-restart rsyslog.service +systemctl reload-or-try-restart rsyslog.service %endif %if 0%{?el6} || 0%{?amzn1} @@ -190,7 +190,7 @@ fi %postun %if 0%{?el7} || 0%{?amzn2} || 0%{?el8} %systemd_postun_with_restart %{name}.service -systemctl try-reload-or-restart rsyslog.service +systemctl reload-or-try-restart rsyslog.service %endif %if 0%{?el6} || 0%{?amzn1} @@ -226,6 +226,9 @@ fi %endif %changelog +* Sun Jul 12 2020 David Bezemer +- Backwards compatible conditional restart using reload-or-try-restart + * Sun Jul 12 2020 David Bezemer - Add support for HAProxy 2.1.x