<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/libexec/rc/rc.d, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-12-18T16:02:28Z</updated>
<entry>
<title>Fix the ipfw service status output when ipfw.ko isn't loaded</title>
<updated>2020-12-18T16:02:28Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-12-18T16:02:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5120612664fbc54d69ee1a21d0abcbab58712709'/>
<id>urn:sha1:5120612664fbc54d69ee1a21d0abcbab58712709</id>
<content type='text'>
Reported by:	lme
Reviewed by:	lme
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D27657
</content>
</entry>
<entry>
<title>Make mountcritremote dependent upon nfscbd.</title>
<updated>2020-12-17T00:20:57Z</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2020-12-17T00:20:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=31b29217abc4da8504df959794d43428712f2666'/>
<id>urn:sha1:31b29217abc4da8504df959794d43428712f2666</id>
<content type='text'>
Although it is not often needed, the nfscbd(8) should be running when
NFSv4 mounts are done if callback functionality is required.
Callback functionality is required for the NFSv4 server to issue
delegations or pNFS layouts.

This patch adds nfscbd to the mountcritremote's REQUIRED line
to ensure it is started before NFS mounts specified in /etc/fstab
are done.

Reviewed by:	0mp
Differential Revision:	https://reviews.freebsd.org/D27506
</content>
</entry>
<entry>
<title>Revert r366857.</title>
<updated>2020-12-04T19:31:16Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2020-12-04T19:31:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=353ce816878c17e4367280f178d9cb521cc3d616'/>
<id>urn:sha1:353ce816878c17e4367280f178d9cb521cc3d616</id>
<content type='text'>
r366857 created a number of problems, tearing down interfaces too
early in shutdown. This resulted in:

- hung ssh sessions when shutting down or rebooting remotely using
  shutdown (I've used exec shutdown, for years, as apposed to simply
  shutdown).

- NFS mounted filesystems "disappear" prior to unmount.

- dhclient attached to a VLAN on an interface who's parent interface
  has already shut down prints errors.

The path forward is to teach lagg(4) and vlan(4) about WOL.

PR:		251531, 251540
PR:		158734, 109980 are broken again
Reported by:	jhb, emaste, jtl, Helge Oldach&lt;freebsd_oldach.net&gt;
		Martin Birgmeier &lt;d8zNeCFG_aon.at&gt;
MFC after:      Immediately
Discussion at:	https://reviews.freebsd.org/D27459
</content>
</entry>
<entry>
<title>Revert r367291 (KEYWORD: shutdown for rc.d/zfs)</title>
<updated>2020-11-20T14:37:07Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2020-11-20T14:37:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e5912dcf20718573bdb694b085d1cf3bc10a2eb5'/>
<id>urn:sha1:e5912dcf20718573bdb694b085d1cf3bc10a2eb5</id>
<content type='text'>
The problem is that zfs is asked to stop too early in the shutdown
sequence. Other services, such as syslog may still be running and have some
files open (e.g., under /var/log). This of course causes the messages like:

  cannot unmount '/var/run': umount failed
  cannot unmount '/var/log': umount failed
  cannot unmount '/var': umount failed
  cannot unmount '/usr/home': umount failed
  cannot unmount '/usr': umount failed
  cannot unmount '/': umount failed

For now, let's remove the shutdown KEYWORD from the zfs service, as people are
reporting problems in their setups:
https://lists.freebsd.org/pipermail/freebsd-current/2020-November/077559.html

In the future, we may think of stopping zfs on shutdown after all the other
services and just before init(8) exits. Another interesting option might be to
a new rcorder(8) KEYWORD like "shutdownjail", but this idea would need to be
discussed a bit.

Reported by:	Johan Hendriks &lt;joh.hendriks gmail.com&gt;
Reported by:	Yasuhiro KIMURA &lt;yasu utahime.org&gt;
Reported by:	Tomoaki AOKI &lt;junchoon dec.sakura.ne.jp&gt;
Approved by:	kevans (src)
MFC:		3 days
Differential Revision:	https://reviews.freebsd.org/D27263
</content>
</entry>
<entry>
<title>Fix startup of gssd when /usr is a separately mounted local file system.</title>
<updated>2020-11-14T01:49:49Z</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2020-11-14T01:49:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=01b139f212a11d78b6cba95340404f03a9f3c418'/>
<id>urn:sha1:01b139f212a11d78b6cba95340404f03a9f3c418</id>
<content type='text'>
meowthink@gmail.com reported that the gssd daemon was not
starting, because /etc/rc.d/gssd was executed before his local
/usr file system was mounted.
He fixed the problem by adding mountcritlocal to the REQUIRED
line.

This fix seems safe and works for a separately mounted /usr file
system on a local disk.
The case of a separately mounted remote /usr file system (such as
NFS) is still broken, but there is no obvious solution for that.
Adding mountcritremote would fix the problem, but it would
cause a POLA violation, because all kerberized NFS mounts
in /etc/fstab would need the "late" option specified to work.

Submitted by:	meowthink@gmail.com
Reported by:	meowthink@gmail.com
Reviewed by:	0mp
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D27203
</content>
</entry>
<entry>
<title>Add support for the new mountd -R option.</title>
<updated>2020-11-06T16:33:42Z</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2020-11-06T16:33:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4389a5661034536b423181476cbbc6efca825055'/>
<id>urn:sha1:4389a5661034536b423181476cbbc6efca825055</id>
<content type='text'>
r376026 added a new "-R" option to mountd, which tells it to
not support the Mount protocol (not used by NFSv4) and not
register with rpcbind.
Rpcbind is considered a security issue by some sites now.

This patch adds a new yes/no variable called nfsv4_server_only.
When that is set, make vfs.nfsd.server_min_vers=4 and set "=R"
for mountd.
Setting vfs.nfsd.server_min_vers=4 tells nfsd to not register with rpcbind.
While here, add a check for "load_kld nfsd" failing to nfsd.

Reviewed by:	0mp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D26938
</content>
</entry>
<entry>
<title>rc.d/zfs: Add shutdown to KEYWORDS</title>
<updated>2020-11-03T10:02:52Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2020-11-03T10:02:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=0cadbd6cd258e2a889c49f42d3f61f85663eeb75'/>
<id>urn:sha1:0cadbd6cd258e2a889c49f42d3f61f85663eeb75</id>
<content type='text'>
The problem is that Without walling /etc/rc.d/zfs on shutdown, resources
associated with ZFS mounts are not freed and the jails will remain in dying
state. In addition, the dataset is now in a dangling state, as the jail it
is attached to is dying.

A known workaround for jails was to add the following lines
to /etc/jail.conf, to make sure that "service zfs stop" is run
when the jail is stopped:

    exec.stop = "/bin/sh /etc/rc.shutdown";
    exec.stop += "/usr/sbin/service zfs stop || /usr/bin/true";

While the workaround seems to be okay-ish for the jail situation, it is
still unclean. However, for physical hosts this may wreak havoc with the
pool if shared spares are used, as "zfs unshare" is never invoked on
shutdown.

PR:		147444
Submitted by:	Markus Stoff &lt;markus__stoffdv_at&gt;
Reported by:	Mykah &lt;mburkhardt__exavault_com&gt;
Reviewed by:	cy
Approved by:	cy (src)
MFC after:	1 week
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D27039
</content>
</entry>
<entry>
<title>rc.d/syscons: remove spaces before tab</title>
<updated>2020-10-25T18:27:21Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-10-25T18:27:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=98b04ac35965fa0735c06a4966c6939f8009509e'/>
<id>urn:sha1:98b04ac35965fa0735c06a4966c6939f8009509e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Destroy cloned interfaces at netif stop, netif restart and shutdown.</title>
<updated>2020-10-19T20:37:38Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2020-10-19T20:37:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=bd0e0447cb89d4f14dd9cbf138b155016bf39f1e'/>
<id>urn:sha1:bd0e0447cb89d4f14dd9cbf138b155016bf39f1e</id>
<content type='text'>
This is especially important during shutdown because a child interface
of lagg with WOL enabled will not enable WOL at interface shutdown and
thus no WOL to wake up the device (and machine).

PR:		158734, 109980
Reported by:	Antonio Huete Jimenez &lt;tuxillo at quantumachine.net&gt;
		Marat N.Afanasyev &lt;marat at zealot.ksu.ru&gt;
reviewed by:	kp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D26797
</content>
</entry>
<entry>
<title>[pf] /etc/rc.d/pf should REQUIRE routing</title>
<updated>2020-10-08T11:45:10Z</updated>
<author>
<name>Pawel Biernacki</name>
<email>kaktus@FreeBSD.org</email>
</author>
<published>2020-10-08T11:45:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=9ef917591248e35efea846d0d743b74503387099'/>
<id>urn:sha1:9ef917591248e35efea846d0d743b74503387099</id>
<content type='text'>
When a system with pf_enable="YES" in /etc/rc.conf uses hostnames in
/etc/pf.conf, these hostnames cannot be resolved via external nameservers
because the default route is not yet set. This results in an empty
(all open) ruleset.

Since r195026 already put netif back to REQUIRE, this change does not affect
the issue that the firewall should rather have been setup before any
network traffic can occur.

PR:		211928
Submitted by:	Robert Schulze
Reported by:	Robert Schulze
Tested by:	Mateusz Kwiatkowski
No objections from:	kp
MFC after:	3 days
</content>
</entry>
</feed>
