From d25a4f4258fb3ac7fd241e2e0c91a466de596139 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 2 Aug 2019 15:32:34 +0200 Subject: [PATCH] crashkernel: Add ExecStop Add ExecStop to unload the panic kernel. "systemctl stop crashkernel" can be used to disable the panic reboot and free the memory. "systemctl restart crashkernel" can be used to reload the panic kernel. --- misc_systemd_units/crashkernel.service | 1 + 1 file changed, 1 insertion(+) diff --git a/misc_systemd_units/crashkernel.service b/misc_systemd_units/crashkernel.service index fde443c..61ef8f4 100644 --- a/misc_systemd_units/crashkernel.service +++ b/misc_systemd_units/crashkernel.service @@ -7,6 +7,7 @@ StandardOutput=kmsg StandardError=kmsg Type=oneshot ExecStart=/usr/sbin/kexec -p /boot/bzImage.crash --initrd=/boot/grub/initramfs.igz --command-line="root=LABEL=root ro console=ttyS0,115200n8 console=ttyS1,115200n8 console=tty0 irqpoll maxcpus=1 reset_devices CRASH" +ExecStop=/usr/sbin/kexec -p -u RemainAfterExit=yes [Install]