blob: 5f1a84bb5cc0f8139454843e7275b0d5f888c6c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
#
# $FreeBSD$
# PROVIDE: vmctl
# REQUIRE: NETWORKING SERVERS dmesg
# BEFORE: ipfw pf
# KEYWORD: shutdown nojail
. /etc/rc.subr
name="vmctl"
desc="Start and stop bhyve virtual machines"
rcvar="vmctl_enable"
: ${vmctl_enable:="NO"}
command="/usr/local/sbin/${name}"
start_cmd="${command} _start-all"
stop_cmd="${command} _stop-all"
status_cmd="${command} list"
load_rc_config $name
run_rc_command "$1"
|