• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

What does org.jboss.Main -b 0.0.0.0 mean?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to debug a linux script that isn't reporting when JBoss is running, when it tries to run or stop the server.

This is the statement, and it's being used as a condition for echoing whether the server is active:

 pgrep -fn "org.jboss.Main -b 0.0.0.0



So for example, for stopping the server the script is


For starting the server, the script is



, and in both cases, the dot "." keeps getting echoed indefinitely, so that we have to break out.


What I'm asking, if anyone can help, is

1.  What does the -b 0.0.0.0 mean?  Are these really necessary, if we're just trying to see if the server is running?

2.  If these parameters seem necessary, is there an alternative way of doing the same thing, that we can try?



Thanks and regards,




 
Marshal
Posts: 3457
493
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that your post is from several weeks ago and you have already resolved your problem.  I'll reply anyway in case may help someone else in the future.

Don Campbell wrote:1.  What does the -b 0.0.0.0 mean?  Are these really necessary, if we're just trying to see if the server is running?


The -b option is used to specify the binding address.  -b 0.0.0.0 means bind to addresses for all interfaces.


Don Campbell wrote:2.  If these parameters seem necessary, is there an alternative way of doing the same thing, that we can try?


You should be able to set this in the appropriate configuration file (file name/location and other details depend on server version and installation decisions):
 
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ron McLeod wrote:
The -b option is used to specify the binding address.  -b 0.0.0.0 means bind to addresses for all interfaces.



If it's not defined, the default binding address is 127.0.0.1 or localhost, meaning that clients cannot talk to the JBoss server unless they are located on the same machine as the JBoss server itself. This is a security feature to ensure that the server doesn't get exposed to a cruel outside world until you've got everything properly configured and locked down.
 
Don Campbell
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is still useful, thanks.

Ron McLeod wrote:I know that your post is from several weeks ago and you have already resolved your problem.  I'll reply anyway in case may help someone else in the future.

Don Campbell wrote:1.  What does the -b 0.0.0.0 mean?  Are these really necessary, if we're just trying to see if the server is running?


The -b option is used to specify the binding address.  -b 0.0.0.0 means bind to addresses for all interfaces.


Don Campbell wrote:2.  If these parameters seem necessary, is there an alternative way of doing the same thing, that we can try?


You should be able to set this in the appropriate configuration file (file name/location and other details depend on server version and installation decisions):

 
Don Campbell
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim, thanks for the detail.  I'll put this in the pim.


Tim Holloway wrote:

Ron McLeod wrote:
The -b option is used to specify the binding address.  -b 0.0.0.0 means bind to addresses for all interfaces.



If it's not defined, the default binding address is 127.0.0.1 or localhost, meaning that clients cannot talk to the JBoss server unless they are located on the same machine as the JBoss server itself. This is a security feature to ensure that the server doesn't get exposed to a cruel outside world until you've got everything properly configured and locked down.

 
Tim Holloway
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, I always forget that and then can't figure out why clients can't talk. JBoss isn't the only product that gets shipped that way, either.
 
Goodbye moon men. Hello tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic