Date: Sun, 08 Nov 2020 19:58:21 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 250966] databases/postgresql11-server: rc.d file incorrectly uses 'REQUIRE: sshd' Message-ID: <bug-250966-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250966 Bug ID: 250966 Summary: databases/postgresql11-server: rc.d file incorrectly uses 'REQUIRE: sshd' Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pgsql@FreeBSD.org Reporter: antiduh@csh.rit.edu Assignee: pgsql@FreeBSD.org Flags: maintainer-feedback?(pgsql@FreeBSD.org) This affects all postgres server ports. The rc.d file lists the base sshd service as the predecessor for rcorder: # $FreeBSD: head/databases/postgresql11-server/files/postgresql.in 501149 2019-05-09 22:32:11Z girgen $ # # PROVIDE: postgresql # REQUIRE: sshd # KEYWORD: shutdown If sshd is not part of base and thus sshd is not PROVIDE'd anywhere, then rcorder handles this by putting postgres at the absolute top of the list, before any useful machine init has happened: masheen(~) # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* /usr/local/etc/rc.d/postgresql /etc/rc.d/rctl /etc/rc.d/dhclient /etc/rc.d/natd /usr/local/etc/rc.d/htcacheclean /etc/rc.d/growfs ... A more sensible REQUIRE line would be: # REQUIRE: LOGIN FILESYSTEMS ... To anticipate questions why sshd would not be present: sshd might be not installed on machines that have removed it from base, suc= h as one can do with pkg-base, or by recompiling world without the built-in sshd= (by setting WITHOUT_OPENSSH=3DYES). One might choose to strip out base sshd and replace it with ports' security/openssh-portable because it's easier to update and maintain a port than it is to recompile base when openssh has updates (at least, until pkg-= base is released). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250966-7788>