Configuration is
- JBoss 5.1.0
- Linux SuSE 10.2
Goal: running JBoss as a service at startup
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 (stop works 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