3 Replies Latest reply on Oct 7, 2004 10:44 AM by didi1976

    jboss can be run without console mode?

    j_kokil

      Is there any way to avoid jboss running in console mode. We don't want to run jboss in console mode?

      -Jignesh

        • 1. Re: jboss can be run without console mode?
          j_kokil

          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

          • 2. Re: jboss can be run without console mode?
            heijmasa

            Hi,

            u need to change the script on the following part if u don't make use off a separate user to run JBoss under, guess u could change it from jboss to root, if u don't mind it.


            #define the user under which jboss will run, or use RUNASIS to run as the current user
            JBOSSUS=${JBOSSUS:-"jboss"}
            change it to

            JBOSSUS=${JBOSSUS:-"root"}
            or
            JBOSSUS=${JBOSSUS:-"RUNASIS"}



            BTW do u have any experience on running JBoss as a windows service, we got still some troubles with it, to get it going stable, it sometimes abends the service with a nice DrWatson error. We are now using the JWinSC from http://www.cscare.com. This one seems to be more stable as the JavaService v1.2.3.

            Regards,
            Stefan

            • 3. Re: jboss can be run without console mode?
              didi1976

              Hi,

              we are using http://wrapper.tanukisoftware.org.

              This one has proofen to be running stable in production.

              Regards,
              Didi