diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-12 15:20:54 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-12 15:20:54 -0400 |
commit | 241833b7f320e7fca84ba226f1ecbb0c963534f7 (patch) | |
tree | ee9839af8bee6ec9c5cac08306e3167634babcec /files/usr/local/etc/rc.d | |
parent | 8ec6df0afeb4ef69fa64de5516d16f4be48e0549 (diff) | |
download | infrastructure-241833b7f320e7fca84ba226f1ecbb0c963534f7.tar.gz |
initial commit of hypervisor configs
Diffstat (limited to 'files/usr/local/etc/rc.d')
-rw-r--r-- | files/usr/local/etc/rc.d/vmctl.freebsd_hypervisor | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/files/usr/local/etc/rc.d/vmctl.freebsd_hypervisor b/files/usr/local/etc/rc.d/vmctl.freebsd_hypervisor new file mode 100644 index 0000000..5f1a84b --- /dev/null +++ b/files/usr/local/etc/rc.d/vmctl.freebsd_hypervisor @@ -0,0 +1,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" |