aboutsummaryrefslogtreecommitdiffstats
path: root/usr/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib')
-rw-r--r--usr/lib/systemd/system/netconsole.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/netconsole.service b/usr/lib/systemd/system/netconsole.service
new file mode 100644
index 00000000..29248a4f
--- /dev/null
+++ b/usr/lib/systemd/system/netconsole.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Initializes network console logging of kernel messages
+ConditionPathExists=/etc/sysconfig/netconsole
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/libexec/netconsole start
+ExecStop=/usr/libexec/netconsole stop
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target