NagiosEnterprises / nrpe

NRPE Agent
GNU General Public License v2.0
263 stars 134 forks source link

pid_file written in foreground mode #195

Open wferi opened 6 years ago

wferi commented 6 years ago

According to the sample config file

https://github.com/NagiosEnterprises/nrpe/blob/56492da4e4b55c8d188ed8114a88c18f0250ff55/sample-config/nrpe.cfg.in#L39-L41

I wouldn't expect $ nrpe -f to write a PID file, since it's started by a normal user (not root) and in "foreground mode", but apparently it still does. Or at least it tries to and bails out upon failure. Please consider fixing the behavior of the -f switch.