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

Attachments

2
  • 14 Sep 2020, 07:43 PM
  • 09 Sep 2020, 07:34 PM

Activity

Show:

Carlos Ruiz October 16, 2023 at 2:50 PM

Closing after 3 years of inactivity.

Carlos Ruiz September 14, 2020 at 7:45 PM

Uploaded here

This is a second version of the script contributed by on https://idempiere.atlassian.net/browse/IDEMPIERE-4457#icft=IDEMPIERE-4457

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

Regards,

Carlos Ruiz

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

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

Incomplete

Details

Assignee

Reporter

Priority

Created September 9, 2020 at 7:37 PM
Updated December 2, 2023 at 1:23 PM
Resolved October 16, 2023 at 2:50 PM

Flag notifications