Add systemd notify support

This commit is contained in:
Ryan O'Hara 2021-08-03 13:25:59 -05:00
parent 68fd833be9
commit 465c8166fc
2 changed files with 8 additions and 3 deletions

View File

@ -4,11 +4,12 @@ After=network-online.target syslog.target
Wants=network-online.target Wants=network-online.target
[Service] [Service]
Type=forking Type=notify
NotifyAccess=all
PIDFile=/run/keepalived.pid PIDFile=/run/keepalived.pid
KillMode=process KillMode=process
EnvironmentFile=-/etc/sysconfig/keepalived EnvironmentFile=-/etc/sysconfig/keepalived
ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS ExecStart=/usr/sbin/keepalived --dont-fork $KEEPALIVED_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
[Install] [Install]

View File

@ -10,7 +10,7 @@
Name: keepalived Name: keepalived
Summary: High Availability monitor built upon LVS, VRRP and service pollers Summary: High Availability monitor built upon LVS, VRRP and service pollers
Version: 2.2.2 Version: 2.2.2
Release: 4%{?dist} Release: 5%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://www.keepalived.org/ URL: http://www.keepalived.org/
@ -35,6 +35,7 @@ BuildRequires: iptables-devel
%endif %endif
BuildRequires: gcc BuildRequires: gcc
BuildRequires: systemd-units BuildRequires: systemd-units
BuildRequires: systemd-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: libnl3-devel BuildRequires: libnl3-devel
BuildRequires: libnfnetlink-devel BuildRequires: libnfnetlink-devel
@ -107,6 +108,9 @@ mkdir -p %{buildroot}%{_libexecdir}/keepalived
%{_mandir}/man8/keepalived.8* %{_mandir}/man8/keepalived.8*
%changelog %changelog
* Tue Aug 03 2021 Ryan O'Hara <rohara@redhat.com> - 2.2.2-5
- Add systemd notify support
* Tue Aug 03 2021 Ryan O'Hara <rohara@redhat.com> - 2.2.2-4 * Tue Aug 03 2021 Ryan O'Hara <rohara@redhat.com> - 2.2.2-4
- Fix build errors (#1987620) - Fix build errors (#1987620)