From 465c8166fcad6e59be4b9d3384e01752c51394ac Mon Sep 17 00:00:00 2001 From: Ryan O'Hara Date: Tue, 3 Aug 2021 13:25:59 -0500 Subject: [PATCH] Add systemd notify support --- keepalived.service | 5 +++-- keepalived.spec | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/keepalived.service b/keepalived.service index a5a9b28..b4a521d 100644 --- a/keepalived.service +++ b/keepalived.service @@ -4,11 +4,12 @@ After=network-online.target syslog.target Wants=network-online.target [Service] -Type=forking +Type=notify +NotifyAccess=all PIDFile=/run/keepalived.pid KillMode=process EnvironmentFile=-/etc/sysconfig/keepalived -ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS +ExecStart=/usr/sbin/keepalived --dont-fork $KEEPALIVED_OPTIONS ExecReload=/bin/kill -HUP $MAINPID [Install] diff --git a/keepalived.spec b/keepalived.spec index 1886933..155f221 100644 --- a/keepalived.spec +++ b/keepalived.spec @@ -10,7 +10,7 @@ Name: keepalived Summary: High Availability monitor built upon LVS, VRRP and service pollers Version: 2.2.2 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ URL: http://www.keepalived.org/ @@ -35,6 +35,7 @@ BuildRequires: iptables-devel %endif BuildRequires: gcc BuildRequires: systemd-units +BuildRequires: systemd-devel BuildRequires: openssl-devel BuildRequires: libnl3-devel BuildRequires: libnfnetlink-devel @@ -107,6 +108,9 @@ mkdir -p %{buildroot}%{_libexecdir}/keepalived %{_mandir}/man8/keepalived.8* %changelog +* Tue Aug 03 2021 Ryan O'Hara - 2.2.2-5 +- Add systemd notify support + * Tue Aug 03 2021 Ryan O'Hara - 2.2.2-4 - Fix build errors (#1987620)