If you chose to install the java wrapper, then you should have a few extra files in your <jbossJava Service Wrapper, LAMS will start automatically when you boot your machine and stop when you turn off your machine.
You can also start and stop LAMS manually by going to the jboss-4.0.2 dir>/bin , namely "lams-2.0.sh" and "wrapper". Make these executable by typing:
chmod a+x *
If you wish to make LAMS a service that starts every time your machine starts up, you need to copy the init.d script (lams-2.0.sh) into the /etc/init.d folder. For more inforamtion about setting up a service, see directory and using these commands.
> sudo ./lams2 start (starts LAMS)
> sudo ./lams2 console (start LAMS in current shell, to stop do ctrl+C)
> sudo ./lams2 stop (stops LAMS)
> sudo ./lams2 restart (restarts LAMS)
> sudo ./lams2 status (tells you if LAMS is currently running)
> sudo ./lams2 dump (send a kill -3 signal to the wrapper causing the JVM to do a full thread dump)
For more information about using the Jave Service Wrapper with LAMS, go to the web tutorial