Configuring JBoss / LiveCycle to Autostart on SUSE Enterprise Linux

| No Comments

Since LiveCycle ES is server-side software, the J2EE appserver hosting it should ideally be configured to start automatically after a server restart. On Novell SUSE Enterprise Linux, this requires changes to the run.sh JBoss startup file to fit the requirements of SUSE's chkconfig utility.

1) Download the jboss run file (make sure it does not have any extensions such as "txt")
2) Edit it to fit your environment
3) Move it to /etc/init.d/ with 755 permissions, owned by root

4) Download the required config file (make sure it does not have any extensions such as "txt")
5) Edit it to fit your environment
6) Move it to /etc/sysconfig/ with 644 permissions, owned by root

7) login as 'root', cd to /usr/sbin and run the command:
chkconfig jboss on

Verify that appropriate Start and Stop (Kill) soft links have been created in /etc/init.d/rc3.d and /etc/init.d/rc5.d When the server is restarted, the S10jboss link to /etc/init.d/jboss will be invoked to start JBoss. When the server is shut down, the K01jboss link to /etc/init.d/jboss will be invoked. 10 makes sure that JBoss will be started last (after all other services have been started, including MySQL). 01 makes sure that JBoss will be one of the first services to be shutdown on server shutdown.

You can also manually stop JBoss as root by running the command ./jboss stop from /etc/init.d/

Creating a soft link to /etc/init.d/jboss from /usr/sbin/ will let you run this from any directory since /usr/sbin/ is usually in the PATH envitronment variable. The command is (as root):
ln -s /etc/init.d/jboss /usr/sbin

Leave a comment

About this Entry

This page contains a single entry by Jayan Kandathil published on November 9, 2009 11:14 AM.

LiveCycle - Encrypting Cleartext JBoss Data Source Passwords was the previous entry in this blog.

LiveCycle ES2 - New Designer Features is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.