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:
WANG Chao 2014-07-31 14:32:30 +08:00
parent 83d14e0f39
commit 1719a8aa92

View File

@ -6,14 +6,14 @@ KDUMP_PATH="/var/crash"
CORE_COLLECTOR=""
DEFAULT_CORE_COLLECTOR="makedumpfile -l --message-level 1 -d 31"
DMESG_COLLECTOR="/sbin/vmcore-dmesg"
DEFAULT_ACTION="reboot -f"
DEFAULT_ACTION="reboot"
DATEDIR=`date +%Y.%m.%d-%T`
HOST_IP='127.0.0.1'
DUMP_INSTRUCTION=""
SSH_KEY_LOCATION="/root/.ssh/kdump_id_rsa"
KDUMP_SCRIPT_DIR="/kdumpscripts"
DD_BLKSIZE=512
FINAL_ACTION="reboot -f"
FINAL_ACTION="reboot"
KDUMP_CONF="/etc/kdump.conf"
KDUMP_PRE=""
KDUMP_POST=""
@ -59,13 +59,13 @@ get_kdump_confs()
DEFAULT_ACTION="kdump_emergency_shell"
;;
reboot)
DEFAULT_ACTION="do_umount; reboot -f"
DEFAULT_ACTION="do_umount; reboot"
;;
halt)
DEFAULT_ACTION="do_umount; halt -f"
DEFAULT_ACTION="do_umount; halt"
;;
poweroff)
DEFAULT_ACTION="do_umount; poweroff -f"
DEFAULT_ACTION="do_umount; poweroff"
;;
dump_to_rootfs)
DEFAULT_ACTION="dump_to_rootfs"