summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/systemd-units/files/services-server/kexec-load_at.service')
-rw-r--r--sys-apps/systemd-units/files/services-server/kexec-load_at.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-apps/systemd-units/files/services-server/kexec-load_at.service b/sys-apps/systemd-units/files/services-server/kexec-load_at.service
new file mode 100644
index 0000000..e75e594
--- /dev/null
+++ b/sys-apps/systemd-units/files/services-server/kexec-load_at.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=load %i kernel into the current kernel
+Documentation=man:kexec(8)
+DefaultDependencies=no
+Before=shutdown.target umount.target final.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/kexec -l /boot/vmlinuz-%i --initrd=/boot/initramfs-%i.img --reuse-cmdline
+
+[Install]
+WantedBy=kexec.target