Skip to content

Commit

Permalink
Fix lsof not being used when it is not at /usr/sbin/lsof
Browse files Browse the repository at this point in the history
  • Loading branch information
klightspeed committed Jul 14, 2021
1 parent 10f7cdf commit 63b9d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/arkmanager
Expand Up @@ -968,7 +968,7 @@ function isTheServerRunning(){
function isTheServerUp(){
local ip="$(getMultiHome)"
result=1
if [ -x "$lsof" ]; then
if [ -x "$( which "$lsof" )" ]; then
"$lsof" -w -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
result=$?
fi
Expand Down

0 comments on commit 63b9d56

Please sign in to comment.