From 9f6b17a091222f8240194ae331f64e92ed2c3c28 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Sep 2020 13:10:33 +0200 Subject: Update private VM management scripts --- etc/private/vm-start-base | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'etc/private/vm-start-base') diff --git a/etc/private/vm-start-base b/etc/private/vm-start-base index df59d6a..a88ea2d 100755 --- a/etc/private/vm-start-base +++ b/etc/private/vm-start-base @@ -16,10 +16,10 @@ # MAC address to use for the machine. # # --monitor -# Monitor UNIX socket path, /tmp/machine--mon.sock if unspecified. +# Monitor UNIX socket path, /tmp/vm--mon.sock if unspecified. # # --console -# Console UNIX socket path, /tmp/machine--con.sock if unspecified. +# Console UNIX socket path, /tmp/vm--con.sock if unspecified. # # --stdio # Connect both console and monitor to stdio (multiplexed). @@ -27,7 +27,7 @@ # --stdio-monior # Connect only monitor to stdio. # -usage="usage: $0 [] []" +usage="usage: $0 [] []" owd="$(pwd)" trap "{ cd '$owd'; exit 1; }" ERR @@ -103,11 +103,11 @@ img="$1" shift if [ -z "$img" ]; then - error "missing machine image" + error "missing virtual machine image" fi if [ ! -f "$img" ]; then - error "machine image '$img' does not exist" + error "virtual machine image '$img' does not exist" fi # Open the reading file descriptor and lock the machine image. Fail if unable @@ -119,7 +119,7 @@ fi exec {lfd}<"$img" if ! flock -n "$lfd"; then - error "machine is already running" + error "virtual machine image is already in use" fi del_tap= @@ -134,11 +134,11 @@ if [ -z "$tap" ]; then fi if [ -z "$mon" ]; then - mon="/tmp/machine-$tap-mon.sock" + mon="/tmp/vm-$tap-mon.sock" fi if [ -z "$con" ]; then - con="/tmp/machine-$tap-con.sock" + con="/tmp/vm-$tap-con.sock" fi ops=(\ -- cgit v1.1