Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison files/fbhyve.in @ 479:30ba5e272030
fbhyve: put tmux into the required_files
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 28 Aug 2024 09:46:06 +0200 |
| parents | 3f187ec5c4d9 |
| children | 24129dd789f0 |
comparison
equal
deleted
inserted
replaced
| 478:ce46191f24d6 | 479:30ba5e272030 |
|---|---|
| 85 exit ${_ec} | 85 exit ${_ec} |
| 86 fi | 86 fi |
| 87 | 87 |
| 88 _rundir="%%FBHYVE_RUNDIR%%" | 88 _rundir="%%FBHYVE_RUNDIR%%" |
| 89 pidfile="${_rundir}/${_vm}.pid" | 89 pidfile="${_rundir}/${_vm}.pid" |
| 90 command="%%LOCALBASE%%/bin/tmux" | |
| 90 procname="bhyve:" # something like bhyve: <vmname> (bhyve) | 91 procname="bhyve:" # something like bhyve: <vmname> (bhyve) |
| 91 | 92 |
| 92 required_dirs="${_rundir}" | 93 required_dirs="${_rundir}" |
| 93 required_files="${fbhyve_config}" | 94 required_files="${fbhyve_config} ${command}" |
| 94 | |
| 95 command="%%LOCALBASE%%/bin/tmux" | |
| 96 | 95 |
| 97 command_args="new-session -ds ${_session} -n ${_window} \"sh -c 'echo \\\$\\\$ >\\\"${pidfile}\\\"; /usr/sbin/bhyve -k \\\"${fbhyve_config}\\\" \\\"${_vm}\\\"'\"" | 96 command_args="new-session -ds ${_session} -n ${_window} \"sh -c 'echo \\\$\\\$ >\\\"${pidfile}\\\"; /usr/sbin/bhyve -k \\\"${fbhyve_config}\\\" \\\"${_vm}\\\"'\"" |
| 98 | 97 |
| 99 | 98 |
| 100 fbhyve_status() | 99 fbhyve_status() |
