Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mineiro/5534778 to your computer and use it in GitHub Desktop.
Save mineiro/5534778 to your computer and use it in GitHub Desktop.
JBoss auto start on RHEL, CentOS & Scientific Linux

When using a binary JBoss installation on RHEL, CentOS or Scientific Linux, it may be required to start the services when the system starts itself.

JBoss binary installations already ship with a shell script for Red Hat based systems that does exactly that, but misses some chkconfig parameters.

In order to add JBoss to system initialization, you have to append these lines right after #!/bin/sh:

# chkconfig: 345 90 10
# description: Runs the JBoss Application Server
# processname: jboss

It will allow you to use chkconfig --add jboss_init (or any other initialization script name) to add JBoss to system startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment