3 Replies Latest reply on Dec 15, 2003 12:16 AM by zul

    Jboss 2.4.4 solaris daemon startup script ?

    penttinent

      Has anyone succeeded to run JBoss as an daemon on Solaris how to get it as an service ?

      no daemon mode on solaris no killproc either so that script i have seen does not work on solaris.

      Very best regards,

      Toni

        • 1. Re: Jboss 2.4.4 solaris daemon startup script ?
          jasonbaker

          I'm also having a problem with this, but what I'm seeing is that even with nohup and trap on every signal, JBoss will always exit when either of these two things happen:

          - press control-c in the window I issued the start command in (it's running in the background, not foreground)
          - exit the login shell that I issued the start command in

          This one is driving me nuts. I'm starting to think it's a sh bug, because I've never had problems like this on writing an init script before!

          • 2. Re: Jboss 2.4.4 solaris daemon startup script ?
            jasonbaker

            As I posted in a similar thread, the culprit turned out to be that /bin/sh on Solaris was leaving JBoss connected to the tty as standard input, even though the process was backgrounded.

            Try redirecting stdin from /dev/null, IE:

            java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@ > $JBOSS_DIST/log/server.output 2>&1 < /dev/null &

            • 3. Re: Jboss 2.4.4 solaris daemon startup script ?
              zul

              hi,

              I dont understand the Try redirecting stdin from /dev/null

              Can someone explain?

              rgds,

              Zul