2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00
This commit is contained in:
bybai 2018-04-11 06:26:35 -04:00
parent b0091144b5
commit 78975b6825

View File

@ -69,8 +69,7 @@ cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:xdsh $$CN "echo 1 > /proc/sys/kernel/sysrq"
cmd:xdsh $$CN "echo c > /proc/sysrq-trigger" -t 30
cmd:xdsh $$CN "setsid 'echo 1 > /proc/sys/kernel/sysrq; echo c > /proc/sysrq-trigger'"
cmd:sleep 300
cmd:vmcorefile=`find /kdumpdir/ -name vmcore`;if [[ -s $vmcorefile ]]; then echo "this file is not empty";else echo "this file is empty"; fi