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.
__________________