Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a2c760c628
Fetching contributors…

Cannot retrieve contributors at this time

executable file 42 lines (32 sloc) 0.551 kB
#!/bin/bash
if [ "X`id -u`" = "X0" -a -z "$RUN_AS_USER" ]
then
echo "Do not run this script as root."
exit 1
fi
start() {
twistd --python=relaybot.py --logfile=relaybot.log --pidfile=relaybot.pid
}
stop() {
kill `cat relaybot.pid`
}
case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart')
stop
start
;;
'status')
tail -F relaybot.log
;;
*)
echo "Usage: $0 { start | stop | restart | status }"
exit 1
;;
esac
exit 0
Jump to Line
Something went wrong with that request. Please try again.