#! /bin/sh
DIR=`dirname $0`
export ERL_LIBS="$DIR:$DIR/deps/mochiweb"

erl +Bd +K true -noinput -sasl errlog_type error \
     -s rpssl_app -port 8000

#! /bin/sh
DIR=`dirname $0`
export ERL_LIBS="$DIR:$DIR/deps/mochiweb"

exec erl +Bd +K true -noinput -sasl errlog_type error \
     -s rpssl_app $@

Use exec, get rid of the shell
Use exec, get rid of the shell
