Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447922 - net-analyzer/nrpe - init script fails to create /var/run/nrpe
Summary: net-analyzer/nrpe - init script fails to create /var/run/nrpe
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 09:30 UTC by Benedikt Böhm (RETIRED)
Modified: 2012-12-20 13:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
improved init script (nrpe.init,732 bytes, text/plain)
2012-12-20 09:30 UTC, Benedikt Böhm (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benedikt Böhm (RETIRED) gentoo-dev 2012-12-20 09:30:48 UTC
Created attachment 332768 [details]
improved init script

latest openrc versions have made /var/run a symlink to /run. and since /run is a tmpfs, init scripts need to create all directories in /var/run *sigh*

the attached init script fixes this issue.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-20 13:09:22 UTC
Or you could make sure to update your configuration file so that it does not use /var/run/nrpe to store the pidfile.

nrpe is executed as root, so it'll create its pidfile as /var/run/nrpe.pid. Your init script would change /var/run's owner to nagios:nagios which is incorrect and a big security problem.