[Bug 214663] databases/postgres95-server: FIB support not included in rc.d script

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 19 10:33:26 UTC 2016


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

            Bug ID: 214663
           Summary: databases/postgres95-server: FIB support not included
                    in rc.d script
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: rtd24 at columbia.edu

Created attachment 177179
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177179&action=edit
suggested patch for rc.d script

When restarting postgresql server via rc scripts, the server's process inherits
the fib of the caller, ignoring any settings in /etc/rc.conf. During
maintenance, this can cause headaches when simply restarting the database
brings it up with the incorrect routing table.

This is likely due to the rc script's use of 'su -l ${postgresql_user} -c "exec
${command} ..." in the script.

A simple fix is to insert "setfib ${postgresql_fib}" in the exec statment ;
when no fib is configured, this will default to 0 in any case without any
error. This is provided by the patch below.

Caveat: this would break port installations on any OS prior to a base where
/usr/sbin/setfib is not in use (but this was tested and found present on amd64
versions as early as 7.2 – may still want to modify to account for early OS
edge cases rather than calling setfib always implicitly)

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


More information about the freebsd-ports-bugs mailing list