Fix for newer versions of behyve (-S was removed).

PR:		201044
Submitted by:	Denys Razumov <zxzharmlesszxz@gmail.com>
This commit is contained in:
Michael Gmelin 2015-06-22 18:13:23 +00:00
parent 912a8d2907
commit 1dde0835ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390307
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= bhyve-rc
PORTVERSION= 1
PORTVERSION= 2
CATEGORIES= sysutils
MASTER_SITES= # none
DISTFILES= # none

View File

@ -141,6 +141,6 @@ bhyve_stop()
rm -f ${pidfile}
}
command_args="new-session -ds ${_session} \"sh -c 'echo \\\$PPID >${pidfile}; while true; do /usr/sbin/bhyvectl --vm=${_session} --destroy; /usr/sbin/bhyveload -m ${bhyve_memsize} -d ${bhyve_diskdev} ${_session} && /usr/sbin/bhyve -c ${bhyve_ncpu} -m ${bhyve_memsize} -AI -H -P -g 0 -s 0:0,hostbridge -s 1:0,virtio-net,${bhyve_tapdev} -s 2:0,virtio-blk,${bhyve_diskdev} -S 31,uart,stdio ${_session} || break; done'\""
command_args="new-session -ds ${_session} \"sh -c 'echo \\\$PPID >${pidfile}; while true; do /usr/sbin/bhyvectl --vm=${_session} --destroy; /usr/sbin/bhyveload -m ${bhyve_memsize} -d ${bhyve_diskdev} ${_session} && /usr/sbin/bhyve -c ${bhyve_ncpu} -m ${bhyve_memsize} -AI -H -P -g 0 -s 0:0,hostbridge -s 1:0,virtio-net,${bhyve_tapdev} -s 2:0,virtio-blk,${bhyve_diskdev} -s 31,uart,stdio ${_session} || break; done'\""
run_rc_command "$1"