wht i have done is
sudo emacs /etc/init/app.conf
and then i write the code for my upstart
# application Server description "applicationServer" author "Rahul Mehta <firstname.lastname@example.org" start on (net-device-up and local-filesystems and runlevel ) stop on runlevel  exec /lily/bin/launch-hadoop
when i try to save this file it says :
/etc/init/: no such directory
what should i need to do to solve this problem.
Using Ubuntu 8.04.
On Ubuntu 11.04 it is giving me this error
start: Job failed to start