you can use this script below.

#!/sbin/sh
  | case "$1" in
  | 'start')
  |         echo "Starting Jboss Server"
  |         /usr/jboss/bin/run.sh>&1 | tee /var/log/jboss &
  |        ;;
  | 'stop')
  |         echo "Stopping Jboss Server"
  | #        PID = /usr/bin/pgrep java
  |         /usr/bin/pkill -9 java
  |        ;;
  | *)
  |         echo "Usage: $0 { start | stop }"
  |         exit 1
  |        ;;
  | esac
  | exit 0
  | 


hth
aalmero


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844032#3844032

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844032


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to