mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
sysutils/bhyve-rc: Fix writing to /dev/null in rc script
(cherry picked from commit 00ee9c96c6
)
This commit is contained in:
parent
3aa8bee7b3
commit
51406dd587
@ -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…
Reference in New Issue
Block a user