mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-25 07:48:28 +00:00
Merge pull request #974 from Friesinator/patch-1
Add -w argument to the lsof command
This commit is contained in:
commit
47a668fff4
@ -835,7 +835,7 @@ function isTheServerUp(){
|
|||||||
local ip="$(getMultiHome)"
|
local ip="$(getMultiHome)"
|
||||||
result=1
|
result=1
|
||||||
if [ ! -x "$lsof" ]; then
|
if [ ! -x "$lsof" ]; then
|
||||||
"$lsof" -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
|
"$lsof" -w -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
|
||||||
result=$?
|
result=$?
|
||||||
fi
|
fi
|
||||||
if [ $result -ne 0 ]; then
|
if [ $result -ne 0 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user