Commit 5e043b3b authored by Tomas Krizek's avatar Tomas Krizek

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
%post
%systemd_post system-kresd.slice
%systemd_post kresd@*.service
/sbin/ldconfig
# 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
fi
%preun
%systemd_preun system-kresd.slice
%systemd_preun kresd@*.service
%postun
%systemd_postun_with_restart system-kresd.slice
%systemd_postun_with_restart kresd@*.service
/sbin/ldconfig
%files
......
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