[Bug 258207] mail/fetchmail does not restart properly with "service -R"

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Sep 2021 08:35:05 UTC

            Bug ID: 258207
           Summary: mail/fetchmail does not restart properly with "service
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ml@netfence.it
                CC: chalpin@cs.wisc.edu
                CC: chalpin@cs.wisc.edu
             Flags: maintainer-feedback?(chalpin@cs.wisc.edu)

When issuing "service -R" fetchmail stops, but never restart: "fetchmail:
lstat: /root/.fetchids: Permission denied" is printed.
"service fetchmail restart" works.

This is due to a difference in how the service command works:
_ with -R it sets HOME=/root
_ without -R it sets HOME=/

I'm in doubt if this is a service (base system) bug or feature.
In any case a simple workaround is to add "export HOME=/" in the first lines of
fetchmail RC startup script.

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