Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/vm-core
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

TMUX_SOCKET=/var/run/vm-bhyve.sock

# 'vm list'
# list virtual machines
#
Expand Down Expand Up @@ -704,6 +706,8 @@ core::__start(){
return 1
fi

_tmux_cmd="$_tmux_cmd -S $TMUX_SOCKET"

echo " * booting..."

# run background process to actually start bhyve
Expand Down Expand Up @@ -928,7 +932,8 @@ core::console(){
_tmux_cmd=$(which tmux)

if [ -n "${_tmux_cmd}" ]; then
_tmux=$("${_tmux_cmd}" ls |grep "^${_name}:")
_tmux_cmd="$_tmux_cmd -S $TMUX_SOCKET"
_tmux=$(${_tmux_cmd} ls |grep "^${_name}:")

if [ -n "${_tmux}" ]; then
${_tmux_cmd} attach -t ${_console##*/}
Expand Down