mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 14:48:26 +00:00
Fix lsof not being used when it is not at /usr/sbin/lsof
This commit is contained in:
parent
10f7cdf466
commit
63b9d565c7
@ -968,7 +968,7 @@ function isTheServerRunning(){
|
|||||||
function isTheServerUp(){
|
function isTheServerUp(){
|
||||||
local ip="$(getMultiHome)"
|
local ip="$(getMultiHome)"
|
||||||
result=1
|
result=1
|
||||||
if [ -x "$lsof" ]; then
|
if [ -x "$( which "$lsof" )" ]; then
|
||||||
"$lsof" -w -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
|
"$lsof" -w -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
|
||||||
result=$?
|
result=$?
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user