How do I Start JBoss automatically when boot my linux machine.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How do I Start JBoss automatically when boot my linux machine.
# 8  
Old 06-23-2010
run.sh: invalid option -- s
# 9  
Old 06-23-2010
ok remove server option try again Smilie

Code:
./run.sh  -Dprogram.name=run.sh -classpath /home/argole/server/jboss-4.2.0.GA/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar org.jboss.Main -c projectfolder -b 0.0.0.0

# 10  
Old 06-23-2010
nothing to display Smilie no error no log
# 11  
Old 06-23-2010
To start:
nohup ./run.sh -b 0.0.0.0 -c default

You need specify some environment variables:

#JDK PATH
export PATH=/u01/app/jboss/jdk/bin:$PATH

#JRE PATH
export JAVA_HOME=/u01/app/jboss/jre1.5.0_16

#JBOSS HOME PATH
export JBOSS_HOME=/u01/app/jboss/

=-)
# 12  
Old 06-23-2010
Quote:
Originally Posted by shiraz
nothing to display Smilie no error no log
Your deploy directory is empty ?
# 13  
Old 06-23-2010
@ raphaelbertozzi
This the output:
run.sh: Missing required file: /home/argole/server/jboss-4.2.2.GA/bin/run.jar

@ ygemici
Not and my jboss is working fine when run manually instead of this script.
# 14  
Old 06-23-2010
Quote:
Originally Posted by raphaelbertozzi
To start:
nohup ./run.sh -b 0.0.0.0 -c default

You need specify some environment variables:

#JDK PATH
export PATH=/u01/app/jboss/jdk/bin:$PATH

#JRE PATH
export JAVA_HOME=/u01/app/jboss/jre1.5.0_16

#JBOSS HOME PATH
export JBOSS_HOME=/u01/app/jboss/

=-)
You want to running default application in your command?
Need to work projectfolder
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Start a service manager process automatically on startup

Hello, I am in the process of learning Linux OS. How do I run the below lines of code automatically as root on server startup. cd /opt/program_folder/ServiceManager/bin nohup ./servce_manager DEV & Currently, as soon as the server is up and running I log in as root (as this... (6 Replies)
Discussion started by: rparavastu
6 Replies

2. Linux

How to start pc automatically when power comes (Server)?

Can anyone tell me how to start pc automatically when power comes, here I just want to start server automatically, on boot, my server starts automatically because I have written some startup commands in rc.local file but if power fails, then how can I boot automatically (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

3. Ubuntu

Customizing XUbuntu 12.04 Live CD - Start my Exe Automatically

Hi all http://ubuntuforums.org/images/smilies/smiley-faces-80.gif, I am customizing the LIVE CD of Xubuntu 12.04.. I removed the ubiquity package and changed the live username and hostname using uck-gui.. I am almost done with the customization. Now after the splash screen , the text in motd... (1 Reply)
Discussion started by: selvarajvss
1 Replies

4. UNIX for Advanced & Expert Users

start some services automatically

Hello All i have a question related to some services,i want to start some services with server linux centos. i make "chkconfig httpd on" and "chkconfig asterisk on",but when i verify with chkconfig --list i found httpd 0: off 1: off 2: on 3: on 4: on 5: on 6:... (6 Replies)
Discussion started by: bernard12
6 Replies

5. UNIX and Linux Applications

How do I Start postgre SQL automatically when boot my linux machine

Can any body give me the script to start postgre SQL 8.3.1 when boot linux? (2 Replies)
Discussion started by: shiraz
2 Replies

6. Ubuntu

How can I automatically start a daemon at boot time.

Hi masters, I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task. Also what are... (3 Replies)
Discussion started by: iamjayanth
3 Replies

7. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

8. Solaris

Database can't start automatically on solaris

Hi, I have installed oracle 9i on solaris 10 sucessfully. I have configured listener & tnsname.ora file sucessfuly. Even i can start database manully by starting listener first and from sqlplus promt data base sucessfully. Now i want to start the database automatically after system reboots. I... (2 Replies)
Discussion started by: Sachin Vaidya
2 Replies

9. Solaris

How to start Oracle database automatically

How to start Oracle database automatically when after SunSolaris is being re-booted? TIA, Greg (3 Replies)
Discussion started by: greg0320
3 Replies

10. UNIX for Dummies Questions & Answers

getting postfix tyo start automatically

Postfix has an initscript just like sendmail did so while logged in as root, simply type: ntsysv and select postfix. The message above is from the Redhat postifx FAQ. I tried running ntsysv and postfix is not listed as a selection. I can start postfix manually without any problems, but I need... (2 Replies)
Discussion started by: kmgrady01
2 Replies
Login or Register to Ask a Question