distro/rpm: handle systemd restarts in CentOS 7 compatible way

parent fb3c87c1
......@@ -172,7 +172,7 @@ getent group knot-resolver >/dev/null || groupadd -r knot-resolver
getent passwd knot-resolver >/dev/null || useradd -r -g knot-resolver -d %{_sysconfdir}/knot-resolver -s /sbin/nologin -c "Knot DNS Resolver" knot-resolver
%systemd_post system-kresd.slice
%systemd_post kresd@*.service
# TODO: can be removed when Fedora 27 is no longer supported and migration is no longer necessary
......@@ -198,10 +198,10 @@ if [ -d "/run/kresd" ]; then
%systemd_preun system-kresd.slice
%systemd_preun kresd@*.service
%systemd_postun_with_restart system-kresd.slice
%systemd_postun_with_restart kresd@*.service
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment