Allow OpenNMS Core service to run as non-root

Description

There is currently no easy way to configure OpenNMS Core services to run as non-root when installing OpenNMS on CentOS/RHEL or Debian/Ubunut. There are a few things which prevent this:

  • The runas user is hard coded as root in our start script and in the systemd unit file

  • A non-root user can't create or delete PID files

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Chandra Gorantla July 6, 2021 at 9:17 PM

Benjamin Reed June 25, 2021 at 7:48 PM

merged to develop

Alejandro Galue March 13, 2021 at 2:40 PM

Here is the curated procedure that I wrote for a customer a while ago (I removed the customer details from there to make it more generic and be able to share it):

https://hackmd.io/0hICulQpSZm0J6OmnzfMvA

You can ignore the "Configuration" section, which is not relevant for the non-root procedure (and the guide has a note about it).

I hope that helps.

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Docs Needed

Yes

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created November 23, 2020 at 1:52 PM
Updated July 15, 2021 at 3:14 PM
Resolved June 25, 2021 at 7:48 PM