Thread: HLTV Server
View Single Post
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-29-2019 , 17:37   Re: HLTV Server
Reply With Quote #10

Code:
#!/bin/sh SERVICE="proxy.so" if lsof | grep "$SERVICE" >/dev/null then echo "HLTV process found/ Not running start script" else SERVER_IP=`hostname  -I | cut -f2 -d' '` HOSTNAME=`whoami` nohup screen -A -m -d -S hltv ./hltv +connect "${SERVER_IP}" +name "${HOSTNAME}" & fi

Many thanks. I haven't ever initialized it before.
__________________
DJEarthQuake is offline