Skip to content

Commit

Permalink
crashkernel: Add ExecStop
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Aug 2, 2019
1 parent 7ba29f1 commit d25a4f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc_systemd_units/crashkernel.service
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d25a4f4

Please sign in to comment.