Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 447922

Summary: net-analyzer/nrpe - init script fails to create /var/run/nrpe
Product: Gentoo Linux Reporter: Benedikt Böhm (RETIRED) <hollow>
Component: New packagesAssignee: Sysadmin Bugs <sysadmin>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: improved init script

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.