Depends a bit on the distro but for those with /etc/init.d structures, have a look at the stuff in <HOME>/bin/init.d, you can hook the jboss-as-standalone.sh. Googling around for the name of your distro and few strategic keyword will probably bring up some articles.