• 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

start and shutdown of remote JBoss

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using jboss-3.2.5.
Using Cygwin i am able to start and shutdown the server.
But the problem is that when i am shutdown my system the remote jboss server also shutdowns. Is there any way to keep the server run eventhough i shutdown my machine?
also hot deplying is not working this is one of other problem insisting me to start and shutdown jbos from my machine.. any solution for this.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But the problem is that when i am shutdown my system the remote jboss server also shutdowns



Make it as a background process.
 
feroz muhamed
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
My doubt is that...
when we are using tomcat on remote server,
after making ssh connection with the remote server
using sh command we were able to start and shutdown tomcat from our machine
and i can shutdown my system after running tomcat.
but in the case of jboss, when i am shutting down the system jboss also shutdown if it is started from my machine....
can you give more explanation on making it a background process,if it is the right solution.
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd try something like this...

nohup [startcommand] &

The nohup will make it not die when you kill your session, and the "&" will kick it to the background.

Hope this helps.

--Jeff
 
Ranch Hand
Posts: 686
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For avoiding console you need to start as a service.
For linux example is given in bin directory - the file is jboss_init_redhat.sh. In the file you need to give your JBoss installation path.
So your command would be sh jboss_init_redhat.sh start and it will start the JBoss without console.
But I have one more problem here
when I started the JBoss with root as well as normal login with above command I got the message "su: user jboss does not exist". I couldn't able to make out why this is comming.
As well as when I used command to stop the JBoss it is not stopping.

Can anybody help me to understand the message, as well as why JBoss is not stopping.

For windows user need to create their own script like
jboss_init_redhat.sh. Previously there was some link available on
http://www.alexandriasc.com/software/JavaService/index.html as mentioned by JBoss documents but now this is not working.

-Jignesh
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic