Jetty as a service in Amazon AMI

view full story

http://stackoverflow.com – I am trying to start jetty as a service in amazon ami. So far, I have created a init script from {jetty.home}/bin/jetty.sh and I have added it to startlevels. jetty 0:off 1:off 2:off 3:on 4:on 5:on 6:off I have installed jetty in /opt/jetty and a user 'jetty' has complete access to the folder. lrwxrwxrwx 1 jetty jetty 11 Dec 17 09:21 jetty -> jetty-9.1.0 drwxr-xr-x 11 jetty jetty 4096 Dec 17 13:15 jetty-9.1.0 I have configured /etc/default/jetty to have all startup parameters required for jetty. START_INI=/opt/jetty/start.ini JAVA_HOME=/usr/lib/jvm/java (HowTos)