This commit is contained in:
FezVrasta 2015-06-21 10:02:07 +02:00
parent 1a8dbf007d
commit 7cdcae0804
3 changed files with 9 additions and 3 deletions

View File

@ -11,7 +11,11 @@ We assume you have created the `steam` user to store steamcmd and your ARK serve
## Requirements
Use this command to install soft requirement on your system
```
apt-get install screen unzip
# Debian based/ Ubuntu
apt-get install screen
# RHEL / CentOS / Fedora
yum install screen
```
Edit /etc/sysctl.conf and set:

View File

@ -9,6 +9,8 @@
#
### END INIT INFO
# NOTICE: this daemon can work only if your system supports start-stop-daemon
# Using the lsb functions to perform the operations.
. /lib/lsb/init-functions

View File

@ -97,7 +97,7 @@ function isTheServerRunning(){
return $result
}
function IsTheServerUp(){
function isTheServerUp(){
#
# Check if the server is up and visible in steam server list
# If the server is listenning on his port return 0, else return 1
@ -219,7 +219,7 @@ printStatus(){
echo -e "$NORMAL" "Server running:" "$RED" "No"
fi
if IsTheServerUp ;then
if isTheServerUp ;then
echo -e "$NORMAL" "Server online:" "$GREEN" " Yes"
else
echo -e "$NORMAL" "Server online:" "$RED" " No"