LSB init script does not start Minion on Ubuntu/Debian

Description

When you install Minion on Ubuntu/Debian from repositories, the sysV init script does not start the Minion. 

When you try to start it the output is

The journalctl -xe output is the following:

You can start|stop the Minion with root /usr/share/minion/bin/{start,stop}.

Source: https://chat.opennms.com/opennms/pl/er48e6jspfbyjf4sbknt7hrdgy

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Benjamin Reed October 2, 2018 at 6:45 PM

Jesse White July 31, 2018 at 1:03 PM

We should get this to work with the minion user rather than reverting the default user to use root.

Ronny Trommer July 31, 2018 at 10:17 AM
Edited

Tried to make a PR to make the default user root on Debian/Ubuntu the same as in CentOS, but couldn't find the init script for Minion in our source code. Tried find . -name "minion" -type f no result?! WTF

I can find the init script for opennms with

Ronny Trommer July 31, 2018 at 9:42 AM

On CentOS 7 it is started by default as user root on Ubuntu it is started by default as user minion which doesn't work. If you set the run as user in /etc/init.d/minion from minion to root the service also starts on Ubuntu/Debian.

Ronny Trommer July 31, 2018 at 8:08 AM
Edited

Verified the problem on Ubuntu 18.04 LTS. The LSB init script does not work. You can start the Minion with {{/usr/share/minion/bin/start}} and {{/usr/share/minion/stop}}.

 

Fixed

Details

Assignee

Reporter

Labels

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created July 31, 2018 at 6:30 AM
Updated November 5, 2018 at 1:02 PM
Resolved October 4, 2018 at 11:14 AM