Public bug reported:
When nagios-nrpe-server is started with systemd, it fails because the
pid file is missing because it cannot be created because the nagios user
does not have permissions to /var/run. This can be fixed by adding
ExecStartPre=-/bin/mkdir /var/run/nrpe
ExecStartPre=/bin/chown nagios:nagios /var/run/nrpe/
to nagios-nrpe-server.service.
Also, there is a PID file in the service file with a wrong path. I know
systemd usually does not create pid files anyway but I found it strange
there was a PIDFile noted but a wrong one.
This is on Ubuntu 16.04.3 LTS, running NRPE Version 3.2.0, installed
from the debian package from the artful repo.
** Affects: nagios-nrpe (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1744030
Title:
systemd does not create directory for pid file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1744030/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs