]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Reload systemctl service on install and updates 8923/head
authorNicolas R <nicolas@atoomic.org>
Thu, 12 Mar 2020 16:48:39 +0000 (10:48 -0600)
committerNicolas R <cpan@atoomic.org>
Tue, 17 Mar 2020 15:43:10 +0000 (09:43 -0600)
Fix GH #8922

Make sure systemd is reloading the updated definition
of a service on updates and first installation.

builder-support/specs/dnsdist.spec
builder-support/specs/pdns-recursor.spec
builder-support/specs/pdns.spec

index 5614e978cb7981e202f93dd1ecf6b29f16af7603..9ca9884d357af0e6f715e3ff8fcbef9f5a6bdbb3 100644 (file)
@@ -152,6 +152,7 @@ fi
 %service_add_post %{name}.service
 %endif
 %if 0%{?rhel} >= 7
+systemctl daemon-reload ||:
 %systemd_post %{name}.service
 %endif
 
index 39df2502128c1a5695c5203a2b90c7f312a93660..4e9608e239db3962db487104360496f373e6dd1d 100644 (file)
@@ -116,6 +116,7 @@ exit 0
 %if 0%{?rhel} == 6
 chkconfig --add %{name}
 %else
+systemctl daemon-reload ||:
 %systemd_post %{name}.service
 %endif
 
index 8a2a2cb19af193fe357d57176ff8a14c365a84e1..20a488951f4a486cb05b4f601fef6331fd09a252 100644 (file)
@@ -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