title: How to write Gradle startup script
body: <p>I have a Gradle app that I startup using <code>./gradlew run</code>.  This works fine, but I'm trying to deploy to an AWS instance (Ubuntu 12) and I would like the script to execute on boot. I tried writing a startup.sh file with the above command, but no dice. I've also tried adding the command to the <code>/etc/rc.local</code> file, but that doesn't seem to work either.  Can someone give me an idea as to how to execute `./gradlew run' on startup?  Thanks!</p>