aboutsummaryrefslogblamecommitdiff
path: root/files/usr/local/etc/rc.d/vmctl.freebsd_hypervisor
blob: 5f1a84bb5cc0f8139454843e7275b0d5f888c6c9 (plain) (tree)























                                            
#!/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"