diff options
-rwxr-xr-x | kvm-wrapper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-wrapper.sh b/kvm-wrapper.sh index 50d91f9..9605389 100755 --- a/kvm-wrapper.sh +++ b/kvm-wrapper.sh @@ -540,7 +540,7 @@ function kvm_start_vm () # More sanity checks: VM running, monitor socket existing, etc. if [[ -z "$FORCE" ]]; then - test_exist "$PID_FILE" && fail_exit "VM $VM_NAME seems to be running already.\nPID file $PID_FILE exists" + test_pid_from_file "$PID_FILE" && fail_exit "VM $VM_NAME seems to be running already.\nPID file $PID_FILE exists" rm -rf "$MONITOR_FILE" rm -rf "$SERIAL_FILE" test_socket "$MONITOR_FILE" && fail_exit "Monitor socket $MONITOR_FILE already existing and couldn't be removed" |