relay.start 280 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash
## Set these fields.
RELAYUSER=glitch
RELAYDIR=/opt/relay

cd $RELAYDIR
pkill -TERM -f "python.*relay"
sleep 0.5
pkill -9 -f "python.*relay"
sleep 0.1
su $RELAYUSER -c "./mkblocklist"
su $RELAYUSER -c "nohup python3 -m relay >${RELAYDIR}/relay.log 2>&1 &"
cd -
exit 0