gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
402 B
14 lines
402 B
#!/bin/bash
|
|
# LinuxGSM check_status.sh function
|
|
# Author: Daniel Gibbs
|
|
# Contributor: UltimateByte
|
|
# Website: https://linuxgsm.com
|
|
# Description: Checks the process status of the server. Either online or offline.
|
|
|
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
if [[ `tmux list-sessions -F "#{session_name}"` == *"$sessionname $port"* ]]; then
|
|
status=1;
|
|
else
|
|
status=0;
|
|
fi
|
|
|