mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 11:28:26 +00:00
Discover path of lsof
This commit is contained in:
parent
9313d72a09
commit
f7ccbfe2f3
@ -25,6 +25,11 @@ if [ -f "${HOME}/.arkmanager.cfg" ]; then
|
||||
source "${HOME}/.arkmanager.cfg"
|
||||
fi
|
||||
|
||||
lsof=lsof
|
||||
if [ -x /usr/sbin/lsof ]; then
|
||||
lsof=/usr/sbin/lsof
|
||||
fi
|
||||
|
||||
# Local variables
|
||||
info=""
|
||||
thejob=""
|
||||
@ -142,7 +147,7 @@ function isTheServerRunning(){
|
||||
#
|
||||
#
|
||||
function isTheServerUp(){
|
||||
lsof -i :"$ark_Port" > /dev/null
|
||||
$lsof -i :"$ark_Port" > /dev/null
|
||||
result=$?
|
||||
# In this case, the result is:
|
||||
# 1 if the command fail. The port is not listenning
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user