ubuntu upstart job to run an erlang application

Pablo Platt pablo.platt@REDACTED
Fri Nov 20 15:07:47 CET 2009


I'm trying to create an upstart job on ubuntu to start a mochiweb app called myweb.
My job looks like:

start on filesystem and net-device-up 
stop on runlevel [06] 

    exec erl -noinput -pa $MYWEBPATH/ebin $MYWEBPATH/deps/*/ebin -boot 
start_sasl -s myweb 
end script 

When I'm trying to start the job and check its status I'm getting: 
$sudo start myweb 
myweb start/running, process 6682 
$sudo status myweb 
myweb stop/waiting

So my mochiweb app doesn't run. 
When I'm using the start.sh script generated with the skeleton my app 
run fine.

Am I missing a flag in the erl command or is it something else? 


More information about the erlang-questions mailing list