How do I shutdown JBoss AS 7.1.0 from the command line? [duplicate]

How do I shutdown JBoss AS 7.1.0 from the command line? [duplicate]

Possible Duplicate:
How do I shutdown JBoss AS 7 server?

I installed jboss-7.1.0 and linked it to my jboss symbolic link to upgrade it from jboss-7.0.2 on an Ubuntu server. Unfortunately my init.d script no longer works since it seems 7.1.0 does not ship with jboss-admin.sh scripts.
What replaces jboss-admin.sh found in 7.0.2 in JBoss AS 7.1.0?

Solutions/Answers:

Solution 1:

jboss-cli.sh  --connect command=:shutdown

Solution 2:

jboss-cli.sh --connect  /host=*:shutdown

References

Related:  Where is the MySQL JDBC jar file in Ubuntu?