From 9313d72a090b417408b2f7418d290edeae884084 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sat, 4 Jul 2015 21:13:13 +1000 Subject: [PATCH 1/2] Add notes on environment variables affecting install --- tools/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/install.sh b/tools/install.sh index 5e45a30..fee74a2 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -103,6 +103,12 @@ if [ ! -z "$1" ]; then else echo "You must specify your system steam user who own steamcmd directory to install ARK Tools." echo "Usage: ./install.sh steam" + echo + echo "Environment variables affecting install:" + echo "EXECPREFIX: prefix in which to install arkmanager executable" + echo " [${EXECPREFIX}]" + echo "INSTALL_ROOT: staging directory in which to perform install" + echo " [${INSTALL_ROOT}]" exit 1 fi From f7ccbfe2f3c4f335393401cac6eb1dcdf9f14c4c Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sun, 5 Jul 2015 22:01:01 +1000 Subject: [PATCH 2/2] Discover path of lsof --- tools/arkmanager | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/arkmanager b/tools/arkmanager index 04d4e50..0129bc3 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -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