6 Replies Latest reply on Jun 21, 2003 4:21 AM by joeman

    Startup issue - terminal

    joeman


      Hello,
      I've recently installed jboss on a Tru64 running Java 1.3.1. Everything works fine after starting up, but after logging out, the jboss, et al dies. I've tried several variations of the scripts, using & and nohup but with no luck. I even tried the
      java. <java opts> ....blah &
      but it just dies everytime I log out! This is a very annoying problem!
      I've searched the forums for 'startup' issues and found many different types, but out of the 100 or so I looked at, I couldn't find anything that resembles this issue.

      Any ideas?

      Cheers
      Joe

        • 1. Re: Startup issue - terminal
          joeman

          This is jboss 3.04 with tomcat 1.1.12.

          If I run a command like the following :-
          nohup $JAVA $JAVA_OPTS -classpath $JBOSS_CLASSPATH org.jboss.Main &

          it sends all output ot nohup.out ok. If I logout and log back in, I have a huge core file.

          Any ideas?

          • 2. Re: Startup issue - terminal
            joeman

            Great!

            So no one knows.

            If someone has an idea, or you don't feel I've provided enough info,
            please let me know and I'll get some more information.

            Cheers

            Joe

            • 3. Re: Startup issue - terminal
              joeman

              Well, appears that after I logout of the tty, the Browser window continues to function with jboss.ok. If I then close the browser window and open it again, it fails. If I then go back (putty in) and check the logs, I find that Jboss has automatically undeployed everything.

              If I keep the putty session open, I don't have this problem.

              Where are my mechanics?

              • 4. Re: Startup issue - terminal
                joeman

                Continuing the long thread that I only seemto reply to...

                If I execute bash before starting jboss
                i.e.

                bash
                ./go.sh start

                Then all is happy. But I'm still having enormous problems with the init script running go.sh script in such a fashion that it will stay up.

                Joe

                • 5. Re: Startup issue - terminal
                  jonlee

                  This is more of an *nix OS issue rather than anything JBoss specific. It is your OS is clobbering existing processes hanging off the terminal shell when it kills the shell - a throwback to preventing users and students from leaving orphaned processes chewing CPU cycles on timeshare systems.

                  The last time I had any real hands on with Tru64 was in it's Digital Unix form so this is a guess, but probably you need to "set -o notify". You should be able to "set +o" to see your environmental flags. The command should tell your shell that you want to be notified asynchronously of completed jobs (which detaches the notification from your terminal output).

                  Hope it helps.

                  • 6. Re: Startup issue - terminal
                    joeman

                    Thanks all for your helpful posts.

                    I figured out how to get it working. I used http://wrapper.tanukisoftware.org/doc/english/example.html#testwrapper-unix
                    to do the job.
                    Problem was that their source source was not done for TRU64, so had to have TRU64 into it.

                    I guess if anyone ever has the problem with TRU64 they can e-mail joeman[_at_]leederville.net and I'll kindly send them the source tree of my hacked Java Service Wrapper.

                    Cheers

                    Joe