[Bug 221740] net-mgmt/nrpe: not starting after crash

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 23 13:05:40 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221740

            Bug ID: 221740
           Summary: net-mgmt/nrpe: not starting after crash
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zeising at FreeBSD.org
          Reporter: mat at FreeBSD.org
          Assignee: zeising at FreeBSD.org
             Flags: maintainer-feedback?(zeising at FreeBSD.org)

Created attachment 185691
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=185691&action=edit
v1

When nrpe quits ungracefully, for example, if the box was rebooted, it often
does not start because the pid file is still there, and the pid in it exists
and the pid in it is in use by some other process.

The dubious code is in src/nrpe.c in write_pid_file() around line 1756 that
could be axed.

But I think the easiest way to fix this is with the attached patch. precmd is
run just before starting the daemon and after checking that it is not already
running.

With this, it starts just fine, and still refuses to start if it is really
already running, but starts fine if the pid file contains a pid that exists but
is not nrpe.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list