Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460442 - net-analyzer/nrpe fails to start after reboot due to /run
Summary: net-analyzer/nrpe fails to start after reboot due to /run
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 19:26 UTC by Eric Martin
Modified: 2013-03-06 09:46 UTC (History)
0 users

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


Attachments
patchfile for /etc/init.d/nrpe (nrpe.patch,329 bytes, patch)
2013-03-05 19:26 UTC, Eric Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Martin 2013-03-05 19:26:24 UTC
Created attachment 341034 [details, diff]
patchfile for /etc/init.d/nrpe

net-analyzer/nrpe will not start on a fresh boot since /var/run/nrpe isn't created because /var/run -> /run which is tmpfs.  I have included a patch that will check to see if the folder exists, and create it if not.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-03-06 09:46:25 UTC
The patch is wrong, especially since it's running in global scope.

Besides, a fresh install wouldn't have the problem; if it's an upgrade, just change the pidfile in the configuration files:

# PID FILE
# The name of the file in which the NRPE daemon should write it's process ID
# number.  The file is only written if the NRPE daemon is started by the root
# user and is running in standalone mode.

pid_file=/run/nrpe.pid