This is a simple Adempiere startup/init script for CentOS.
I’ve coded it to execute the application server inside a screen session. This allows you to easily monitor the application servers output in real-time. This script should be valid for all versions of Adempiere, I’ve tested with 3.6 and 3.7.
[box type="info"] Just note that this document assumes CentOS 6 for all example code and references. Syntax, file locations and codes may vary based on your distribution.[/box]
You’ll need to have the screen package installed, to check run the following:
# rpm -qa |egrep '^screen'
If the screen package is missing, use yum to install it
Lastly, you’ll need to set $ADM_HOME to your Adempiere directory.
Copy/paste the script into a new file named “/etc/init.d/adempiere”.
You’ll need to make the script executable.
# chmod +x /etc/init.d/adempiere
Create all the rc entries, and configure the Adempiere service to boot on system boot
# chkconfig --add adempiere
# chkconfig adempiere on