From: Nicolas R Date: Thu, 12 Mar 2020 16:48:39 +0000 (-0600) Subject: Reload systemctl service on install and updates X-Git-Tag: dnsdist-1.5.0-alpha1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5179dca004a6b5196ad5bf2853064473c7a6f90;p=thirdparty%2Fpdns.git Reload systemctl service on install and updates Fix GH #8922 Make sure systemd is reloading the updated definition of a service on updates and first installation. --- diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index 5614e978cb..9ca9884d35 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -152,6 +152,7 @@ fi %service_add_post %{name}.service %endif %if 0%{?rhel} >= 7 +systemctl daemon-reload ||: %systemd_post %{name}.service %endif diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index 39df250212..4e9608e239 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -116,6 +116,7 @@ exit 0 %if 0%{?rhel} == 6 chkconfig --add %{name} %else +systemctl daemon-reload ||: %systemd_post %{name}.service %endif diff --git a/builder-support/specs/pdns.spec b/builder-support/specs/pdns.spec index 8a2a2cb19a..20a488951f 100644 --- a/builder-support/specs/pdns.spec +++ b/builder-support/specs/pdns.spec @@ -273,6 +273,7 @@ chown -R pdns:pdns /var/lib/powerdns || : %post %if 0%{?rhel} >= 7 +systemctl daemon-reload ||: %systemd_post pdns.service %else /sbin/chkconfig --add pdns