Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (14 sloc) 312 Bytes
#!/bin/bash
cd /root/Doorbot
if [ "$1" != 1 ]; then
screen -dmS doorbot $0 1
else
echo Starting doorbot...
echo $$ >/var/run/rundoorbot.pid
while true; do
./doorbot.py -r0
echo Doorbot exited. Restarting shortly...
echo Restarting doorbot |nc -q1 172.31.24.101 12345
sleep 5
done
fi
Something went wrong with that request. Please try again.