-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backwards compatible systemctl try-reload
Fixes #31
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[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 | ||
|
||
|