F I R S T   S T E P S :   B R I N G   J B O S S   T O   L I F E  
#IF YOU NEED SPECIAL CLASSES IN YOUR CLASSPATH 
#AT STARTUP, ADD THEM TO YOUR CLASSPATH HERE 
#export CLASSPATH= 
RETVAL=0 
# See how we were called. 
case "$1" in 
   start) 
         cd $JBOSS_HOME/bin 
         echo  n "Starting jboss daemon: " 
         daemon $JBOSS_HOME/bin/go.sh start 
         RETVAL=$? 
         echo 
         [ $RETVAL  eq 0 ] && touch /var/lock/subsys/jboss 
         ;; 
   stop) 
         echo  n "Stopping jboss daemon: " 
         killproc jboss 
         RETVAL=$? 
         echo 
         [ $RETVAL  eq 0 ] && rm  f /var/lock/subsys/jboss 
         ;; 
   restart) 
         echo  n "Restarting jboss daemon: " 
  $0 stop 
  sleep 2 
  $0 start 
         ;; 
esac 
                
As you see this need another script that must be placed into JBOSS_HOME/bin. It looks like 
this:  
Listing 2 3, JBoss  go  shell script 
################################ 
### Contents of go.sh 
### 
### (Make sure #!/bin/sh is the first line of the file and the file 
### has execute permissions for root.) 
################################ 
#!/bin/sh 
# 
# go.sh 
# Shell script to start and stop integrated Tomcat/jBoss 
export JBOSS_HOME=/usr/local/jboss 
export JAVA_HOME=/usr/java 
22






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

best web hosting

 

Our partners: PHP: Hypertext Preprocessor Cheap Web Hosting JSP Web Hosting Ontario Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Java Hosting Cheapest Hosting

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved