Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

run jboss in linux background

 
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i install jboss3.2 in my redhat8,i go to the bin directory of jboss,the type "run -c all" command,the jboss start,but after it finish the starting,i find that the jboss run in "preemptive" mode,i can't do any other thing,if i press "ctr+c" the jboss stop.
who can tell me how i can start the jboss in background,then i can do the other job such as copy file........... in the frontground?

the next question is how can i config the linux launch the jboss during the booting procedure automatically?

thank you!
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are some scripts I'm using

start.sh
LOG_FILE=./jboss/server/default/log/jboss.out
nohup ./jboss/bin/run.sh >$LOG_FILE 2>$LOG_FILE &

stop.sh
./jboss/bin/shutdown.sh -S

log.sh - this will watch the log file
tail -f --sleep-interval=.5 ./jboss/server/default/log/jboss.out

As far as starting jboss as a service... http://www.jboss.org/wiki/Wiki.jsp?page=StartJBossOnBootWithLinux
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic