Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 359 Bytes
#! /bin/sh
BASEDIR=`dirname $0`
BASEDIR=`readlink -f $BASEDIR`
cd $BASEDIR
ERL_LIBS=$BASEDIR:$BASEDIR/deps
export ERL_LIBS
SNAME=ircbot@localhost
if [ "$1" = "shell" ]; then
erl -remsh $SNAME -sname rem
else
exec erl +K true -noinput -noshell \
-sasl errlog_type error \
-sname $SNAME \
-s ircbot_app -conf settings.cfg
fi