Changes to opennms.init to work on SuSE and use OPENNMS_HOME everywhere.

Description

Changes are needed with opennms.init to work on SuSE. Also, OPENNMS_HOME is not always used, sometimes /opt/OpenNMS is specifically hardcoded. The coming patch (which is detailed below) fixes these problems.

If /etc/SuSE-release exists, don't atempt to source init.d/functions,
source /etc/rc.status, instead. Also run /usr/bin/setJava to get
JAVA_* paths for Java 1.4 or greater.

If running on SuSE, use appropriate SuSE-style start/stop code.

Replace all instances of "/opt/OpenNMS" with $OPENNMS_HOME (except
for the instance that sets OPENNMS_HOME if it is empty).

Patch to be uploaded shortly.

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Attachments

1
  • 23 Feb 2003, 12:39 PM

Lucidchart Diagrams

Activity

Show:

Tarus Balog May 17, 2004 at 1:40 PM

committed to CVS - thanks Deej

DJ Gregor February 23, 2003 at 12:39 PM

Created an attachment (id=50)
Patch for these problems.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created February 23, 2003 at 12:37 PM
Updated January 27, 2017 at 4:32 PM
Resolved May 17, 2004 at 2:40 PM

Flag notifications