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 ...@@ -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 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 %post
%systemd_post system-kresd.slice %systemd_post kresd@*.service
/sbin/ldconfig /sbin/ldconfig
# TODO: can be removed when Fedora 27 is no longer supported and migration is no longer necessary # 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 ...@@ -198,10 +198,10 @@ if [ -d "/run/kresd" ]; then
fi fi
%preun %preun
%systemd_preun system-kresd.slice %systemd_preun kresd@*.service
%postun %postun
%systemd_postun_with_restart system-kresd.slice %systemd_postun_with_restart kresd@*.service
/sbin/ldconfig /sbin/ldconfig
%files %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