summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmctl
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-03-18 20:27:12 +0000
committerkn <kn@openbsd.org>2019-03-18 20:27:12 +0000
commite6d0a5bd63d66689c89aa83c2ae2c14da82d837d (patch)
tree47d72383084afad412cdf655369f2f6c0c755b6b /usr.sbin/vmctl
parentspelling; (diff)
downloadwireguard-openbsd-e6d0a5bd63d66689c89aa83c2ae2c14da82d837d.tar.xz
wireguard-openbsd-e6d0a5bd63d66689c89aa83c2ae2c14da82d837d.zip
An existing VM may be started by referencing its ID
Document `vmctl start id ...' again but be clear about the difference between starting new and existing VMs by name and ID respectively. This completes what I started with vmctl.8 revision 1.61. Feedback and OK jmc
Diffstat (limited to 'usr.sbin/vmctl')
-rw-r--r--usr.sbin/vmctl/main.c4
-rw-r--r--usr.sbin/vmctl/vmctl.812
2 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c
index 600e2efe4bd..7065e690889 100644
--- a/usr.sbin/vmctl/main.c
+++ b/usr.sbin/vmctl/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.54 2019/03/01 12:47:36 kn Exp $ */
+/* $OpenBSD: main.c,v 1.55 2019/03/18 20:27:12 kn Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -81,7 +81,7 @@ struct ctl_command ctl_commands[] = {
{ "reset", CMD_RESET, ctl_reset, "[all | switches | vms]" },
{ "send", CMD_SEND, ctl_send, "id", 1},
{ "show", CMD_STATUS, ctl_status, "[id]" },
- { "start", CMD_START, ctl_start, "name"
+ { "start", CMD_START, ctl_start, "id | name"
" [-cL] [-B device] [-b path] [-d disk] [-i count]\n"
"\t\t[-m size] [-n switch] [-r path] [-t name]" },
{ "status", CMD_STATUS, ctl_status, "[id]" },
diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8
index 5ae3c7fa311..2be9af7123c 100644
--- a/usr.sbin/vmctl/vmctl.8
+++ b/usr.sbin/vmctl/vmctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vmctl.8,v 1.61 2019/03/07 18:54:05 kn Exp $
+.\" $OpenBSD: vmctl.8,v 1.62 2019/03/18 20:27:12 kn Exp $
.\"
.\" Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 7 2019 $
+.Dd $Mdocdate: March 18 2019 $
.Dt VMCTL 8
.Os
.Sh NAME
@@ -144,7 +144,7 @@ under the same path.
An alias for the
.Cm status
command.
-.It Xo Cm start Ar name
+.It Xo Cm start Ar id | name
.Op Fl cL
.Bk -words
.Op Fl B Ar device
@@ -157,7 +157,11 @@ command.
.Op Fl t Ar name
.Ek
.Xc
-Starts a VM defined by the specified name and parameters:
+Start a new VM
+.Ar name
+with the specified parameters.
+An existing VM may be started by referencing its
+.Ar id .
.Bl -tag -width "-I parent"
.It Fl B Ar device
Force system to boot from the specified device for this boot.