mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-19 05:28:29 +00:00
fixed PR #23
This commit is contained in:
parent
1a8dbf007d
commit
7cdcae0804
@ -11,7 +11,11 @@ We assume you have created the `steam` user to store steamcmd and your ARK serve
|
|||||||
## Requirements
|
## Requirements
|
||||||
Use this command to install soft requirement on your system
|
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:
|
Edit /etc/sysctl.conf and set:
|
||||||
|
|||||||
@ -9,6 +9,8 @@
|
|||||||
#
|
#
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
|
# NOTICE: this daemon can work only if your system supports start-stop-daemon
|
||||||
|
|
||||||
# Using the lsb functions to perform the operations.
|
# Using the lsb functions to perform the operations.
|
||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
|||||||
@ -97,7 +97,7 @@ function isTheServerRunning(){
|
|||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
|
||||||
function IsTheServerUp(){
|
function isTheServerUp(){
|
||||||
#
|
#
|
||||||
# Check if the server is up and visible in steam server list
|
# 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
|
# 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"
|
echo -e "$NORMAL" "Server running:" "$RED" "No"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if IsTheServerUp ;then
|
if isTheServerUp ;then
|
||||||
echo -e "$NORMAL" "Server online:" "$GREEN" " Yes"
|
echo -e "$NORMAL" "Server online:" "$GREEN" " Yes"
|
||||||
else
|
else
|
||||||
echo -e "$NORMAL" "Server online:" "$RED" " No"
|
echo -e "$NORMAL" "Server online:" "$RED" " No"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user