1 Reply Latest reply on Jul 7, 2011 10:16 AM by matthieus

    JBoss 5.1.0.GA as a service shutdown while being launched at startup

    matthieus Newbie

      Configuration is
      - JBoss 5.1.0
      - Linux SLES 10.2

      JBoss distribution provides a template script to run JBoss as a service on Linux (jboss_init_suse.sh), so I used it.

      When I run the service manually with /etc/rc.d/jboss start, it starts without any problem (stopworks fine too), but when I activate the service to be launched at startup I get the following behaviour:

      The service starts until the log
      INFO [WebService] Using RMI server codebase: http://1.2.3.4:8083/
      then the following log is
      INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
      which is followed by a shutdown. Every time.

      I suspect this might be because a mandatory service is not started yet. FYI the service is configured with following requirements:

      ### BEGIN INIT INFO
      # Provides: jboss
      # Required-Start:    $syslog $remote_fs
      # X-UnitedLinux-Should-Start: $named $syslog $time
      # Required-Stop:     $syslog $remote_fs
      # X-UnitedLinux-Should-Stop: $named $syslog $time
      # Default-Start: 3 5
      # Default-Stop: 0 1 2 6
      # Description: Start the JBoss application server.
      ### END INIT INFO

      Any idea how to avoid this shutdown?