Skip to content

Commit

Permalink
Backwards compatible systemctl try-reload
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
DBezemer authored Aug 15, 2020
1 parent 5242caf commit 449f1c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SPECS/haproxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down Expand Up @@ -226,6 +226,9 @@ fi
%endif

%changelog
* Sun Jul 12 2020 David Bezemer <[email protected]>
- Backwards compatible conditional restart using reload-or-try-restart

* Sun Jul 12 2020 David Bezemer <[email protected]>
- Add support for HAProxy 2.1.x

Expand Down

0 comments on commit 449f1c6

Please sign in to comment.