Browse Source

hlds_linux

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
5b2a5c377b
  1. 2
      lgsm/functions/info_distro.sh
  2. 2
      lgsm/functions/info_messages.sh

2
lgsm/functions/info_distro.sh

@ -13,6 +13,8 @@ if [ "${status}" == "1" ]; then
gameserverpid=$(tmux list-sessions -F "#{session_name} #{pane_pid}" | grep "^${sessionname} " | awk '{print $NF}')
if [ "${engine}" == "source" ]; then
srcdslinuxpid=$(ps -ef | grep -v grep | grep "${gameserverpid}" | grep srcds_linux | awk '{print $2}')
elif [ "${engine}" == "goldsrc" ]; then
hldslinuxpid=$(ps -ef | grep -v grep | grep "${gameserverpid}" | grep hlds_linux | awk '{print $2}')
fi
fi
### Distro information

2
lgsm/functions/info_messages.sh

@ -671,6 +671,8 @@ fn_info_message_ports(){
echo -e "ss -tuplwn | grep AvorionServer"
elif [ "${engine}" == "source" ]; then
echo -e "ss -tuplwn | grep srcds_linux"
elif [ "${engine}" == "goldsrc" ]; then
echo -e "ss -tuplwn | grep hlds_linux"
else
executableshort="$(echo "${executable//.\/}" | cut -c -15)"
echo -e "ss -tuplwn | grep ${executableshort}"

Loading…
Cancel
Save