浏览代码

stop-target: use poweroff instead of halt

When running Debian Jessie in KVM, using the halt command shuts down
all services but does not stop the qemu process. Using the poweroff
command avoids this problem.
pull/141/head
Nicolas Vigier 4 年前
父节点
当前提交
75502b045d
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      libexec/stop-target

+ 1
- 1
libexec/stop-target 查看文件

@@ -11,7 +11,7 @@ case $VMSW in
KVM)
if [ ! -e var/target.pid ]; then exit; fi

on-target -u root halt
on-target -u root poweroff
sleep 5

if [ ! -e var/target.pid ]; then exit; fi

正在加载...
取消
保存