Skip to content

Commit

Permalink
Merge pull request #8923 from atoomic/daemon-reload
Browse files Browse the repository at this point in the history
Reload systemctl service on updates
  • Loading branch information
rgacogne committed Mar 19, 2020
2 parents 4421a4d + b5179dc commit 0871fac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions builder-support/specs/dnsdist.spec
Expand Up @@ -152,6 +152,7 @@ fi
%service_add_post %{name}.service
%endif
%if 0%{?rhel} >= 7
systemctl daemon-reload ||:
%systemd_post %{name}.service
%endif

Expand Down
1 change: 1 addition & 0 deletions builder-support/specs/pdns-recursor.spec
Expand Up @@ -116,6 +116,7 @@ exit 0
%if 0%{?rhel} == 6
chkconfig --add %{name}
%else
systemctl daemon-reload ||:
%systemd_post %{name}.service
%endif

Expand Down
1 change: 1 addition & 0 deletions builder-support/specs/pdns.spec
Expand Up @@ -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
Expand Down

0 comments on commit 0871fac

Please sign in to comment.