aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec13
1 files changed, 8 insertions, 5 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 0435b990..dbfe14bd 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -238,12 +238,13 @@ fi
# ---------------
%post -n netconsole-service
-chkconfig --add netconsole > /dev/null 2>&1 || :
+%systemd_post netconsole.service
%preun -n netconsole-service
-if [ $1 -eq 0 ]; then
- chkconfig --del netconsole > /dev/null 2>&1 || :
-fi
+%systemd_preun netconsole.service
+
+%postun -n netconsole-service
+%systemd_postun netconsole.service
# ---------------
@@ -323,9 +324,11 @@ fi
# ---------------
%files -n netconsole-service
-%{_sysconfdir}/rc.d/init.d/netconsole
%config(noreplace) %{_sysconfdir}/sysconfig/netconsole
+%{_libexecdir}/netconsole
+%{_prefix}/lib/systemd/system/netconsole.service
+
# ---------------
%files -n readonly-root