Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 655b534c4a
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 0.734 kB
#!/bin/sh
# Most of this file was taken from the ejabberd project and then changed
# until it matched what we had as a goal
NODE=etorrent
HOST=localhost
BEAMDIR=%%%BEAMDIR%%%
CONFIGFILE=%%%CONFIGFILE%%%
ERL_FLAGS=%%%ERL_FLAGS%%%
start () {
erl ${ERL_FLAGS} -sname ${NODE}@${HOST} -pa ${BEAMDIR} \
-config ${CONFIGFILE} -noshell -noinput -detached \
-s etorrent
}
debug () {
erl -sname debug${NODE}@${HOST} \
-pa ${BEAMDIR} \
-remsh ${NODE}@${HOST}
}
ctl () {
erl -noinput -sname etorrentctl@${HOST} \
-pa ${BEAMDIR} \
-s etorrent_ctl start ${NODE}@${HOST} $@
}
usage () {
echo "Usage: $0 {start|stop|debug}"
}
[ $# -lt 1 ] && usage
case $1 in
start) start;;
debug) debug;;
*) ctl $@;;
esac
Jump to Line
Something went wrong with that request. Please try again.