mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
sysutils/bhyve-rc: Fix writing to /dev/null in rc script
This commit is contained in:
parent
f23967b979
commit
00ee9c96c6
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Created by: Michael Gmelin <freebsd@grem.de>
|
||||
|
||||
PORTNAME= bhyve-rc
|
||||
PORTVERSION= 3
|
||||
PORTVERSION= 4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
|
|
@ -120,7 +120,7 @@ bhyve_status()
|
|||
bhyve_poll()
|
||||
{
|
||||
echo -n "Waiting for session: ${_session}"
|
||||
while ${command} has-session -t ${_session} 2>dev/null; do
|
||||
while ${command} has-session -t ${_session} 2>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
echo
|
||||
|
@ -131,7 +131,7 @@ bhyve_stop()
|
|||
if ${command} has-session -t ${_session} 2>/dev/null; then
|
||||
echo "Stopping ${_session}."
|
||||
${command} kill-session -t ${_session}
|
||||
while ${command} has-session -t ${_session} 2>dev/null; do
|
||||
while ${command} has-session -t ${_session} 2>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue