Adempiere Startup Script for CentOS

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:

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.

Create all the rc entries, and configure the Adempiere service to boot on system boot

The Script

[author] [author_image timthumb='on'][/author_image] [author_info]Andrew McDonald is an IT Systems Admin and all round technology junkie. Absolutely a jack-of-all-trades and not one to shy away from a challenge.

[/author_info] [/author]


  1. Daniel Roig   •  

    Hi there,
    Thanks for the great script. I did find that in the ADempiere scripts need the environment variable “ADEMPIERE_HOME” set at the time of running. “service” uses it’s own environment thus it may not get ADEMPIERE_HOME set, thus “service adempiere start” and “service adempiere stop” will not work. One way to solve it is to create a file in /etc/init.d/adempiere.env which contains
    export ADEMPIERE_HOME=/usr/local/Adempiere

    Then add this line into your script
    . /etc/init.d/adempiere.env

    This solved the issue I was encountering.
    Thanks again for the script.

Leave a Reply to Daniel Roig Cancel reply

Your email address will not be published. Required fields are marked *

three − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">