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