do not force shutdown
It's more safe to use systemd (init) to control the shutdown path for us in either reboot or power off or halt action. Signed-off-by: WANG Chao <chaowang@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
83d14e0f39
commit
1719a8aa92
|
@ -6,14 +6,14 @@ KDUMP_PATH="/var/crash"
|
||||||
CORE_COLLECTOR=""
|
CORE_COLLECTOR=""
|
||||||
DEFAULT_CORE_COLLECTOR="makedumpfile -l --message-level 1 -d 31"
|
DEFAULT_CORE_COLLECTOR="makedumpfile -l --message-level 1 -d 31"
|
||||||
DMESG_COLLECTOR="/sbin/vmcore-dmesg"
|
DMESG_COLLECTOR="/sbin/vmcore-dmesg"
|
||||||
DEFAULT_ACTION="reboot -f"
|
DEFAULT_ACTION="reboot"
|
||||||
DATEDIR=`date +%Y.%m.%d-%T`
|
DATEDIR=`date +%Y.%m.%d-%T`
|
||||||
HOST_IP='127.0.0.1'
|
HOST_IP='127.0.0.1'
|
||||||
DUMP_INSTRUCTION=""
|
DUMP_INSTRUCTION=""
|
||||||
SSH_KEY_LOCATION="/root/.ssh/kdump_id_rsa"
|
SSH_KEY_LOCATION="/root/.ssh/kdump_id_rsa"
|
||||||
KDUMP_SCRIPT_DIR="/kdumpscripts"
|
KDUMP_SCRIPT_DIR="/kdumpscripts"
|
||||||
DD_BLKSIZE=512
|
DD_BLKSIZE=512
|
||||||
FINAL_ACTION="reboot -f"
|
FINAL_ACTION="reboot"
|
||||||
KDUMP_CONF="/etc/kdump.conf"
|
KDUMP_CONF="/etc/kdump.conf"
|
||||||
KDUMP_PRE=""
|
KDUMP_PRE=""
|
||||||
KDUMP_POST=""
|
KDUMP_POST=""
|
||||||
|
@ -59,13 +59,13 @@ get_kdump_confs()
|
||||||
DEFAULT_ACTION="kdump_emergency_shell"
|
DEFAULT_ACTION="kdump_emergency_shell"
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
DEFAULT_ACTION="do_umount; reboot -f"
|
DEFAULT_ACTION="do_umount; reboot"
|
||||||
;;
|
;;
|
||||||
halt)
|
halt)
|
||||||
DEFAULT_ACTION="do_umount; halt -f"
|
DEFAULT_ACTION="do_umount; halt"
|
||||||
;;
|
;;
|
||||||
poweroff)
|
poweroff)
|
||||||
DEFAULT_ACTION="do_umount; poweroff -f"
|
DEFAULT_ACTION="do_umount; poweroff"
|
||||||
;;
|
;;
|
||||||
dump_to_rootfs)
|
dump_to_rootfs)
|
||||||
DEFAULT_ACTION="dump_to_rootfs"
|
DEFAULT_ACTION="dump_to_rootfs"
|
||||||
|
|
Loading…
Reference in New Issue