OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 # |
| 7 # Simple wrapper scipt to stop a vm specified from a pid file. |
| 8 |
| 9 . "$(dirname $0)/../common.sh" |
| 10 . "$(dirname $0)/../lib/cros_vm_lib.sh" |
| 11 |
| 12 set -e |
| 13 |
| 14 # Parse command line. |
| 15 FLAGS "$@" || exit 1 |
| 16 eval set -- "${FLAGS_ARGV}" |
| 17 |
| 18 # Requires pid file to be set. |
| 19 if [ -z "${FLAGS_kvm_pid}" ]; then |
| 20 die "Must specify file with pid of kvm to kill." |
| 21 fi |
| 22 |
| 23 KVM_PID_FILE="${FLAGS_kvm_pid}" |
| 24 stop_kvm |
OLD | NEW |