Quote:
Originally Posted by DJEarthQuake
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.
|
What? You shouldn't post something that you're not confident will run properly. If that's not the case, you need to get better at explaining what you are posting (it's often hard to understand you).
__________________