FreeBSD sh shell rc init script

Description

This a revised rc init script that works in the FreeBSD sh shell. It implements three service commands : Start, Status, and Stop. It has a dependency on Postgresql, places the log file in /var/log if not otherwise specified in /etc/rc.conf, and creates a pid file in /var/run/idempiere if not otherwise specified in rc.conf.

The idempiere home, user name and group can be set in rc.conf. If not specified in rc.conf then idempiere_home defaults to the first directory found ending in idempiere-server. The user and group default to idempiere/ The logfile and pidfile may be specified in rc.conf. The init script logs starts and stops to /var/log/idempiere_init.log.

The stop command uses the following three methods to stop the idempiere script: telnet to osgi console, SIGTERM, and SIGKILL applied in that order.

Environment

FreeBSD 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC amd64
idempiereServer7.1Daily.gtk.linux.x86_64

Activity

Show:
James B. Byrne
September 9, 2020, 7:39 PM

The script also searches for and sets JAVA_HOME if not set in rc.conf.

Carlos Ruiz
September 14, 2020, 7:45 PM

Uploaded here

This is a second version of the script contributed by on

We need somebody using FreeBSD that can test and validate the script.

Regards,

Carlos Ruiz

Assignee

James B. Byrne

Reporter

James B. Byrne

Labels

Tested By

None

Priority

Trivial
Configure