Page MenuHomeFreeBSD

rc.d: Fix mountd service script.
ClosedPublic

Authored by des on Jul 23 2025, 11:55 AM.
Tags
None
Referenced Files
F151170703: D51473.id158985.diff
Mon, Apr 6, 1:57 PM
F151120230: D51473.id158985.diff
Mon, Apr 6, 5:28 AM
F151071817: D51473.id158985.diff
Sun, Apr 5, 7:16 PM
Unknown Object (File)
Sun, Mar 22, 1:43 PM
Unknown Object (File)
Sun, Mar 22, 7:48 AM
Unknown Object (File)
Fri, Mar 13, 4:58 PM
Unknown Object (File)
Mar 7 2026, 1:01 PM
Unknown Object (File)
Feb 7 2026, 7:17 PM
Subscribers

Details

Summary

This script references variables beloning to the nfsd and zfs services,
therefore it needs to load their configurations.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65632
Build 62515: arc lint + arc unit

Event Timeline

des requested review of this revision.Jul 23 2025, 11:55 AM

I don't see a problem with this, but I am not conversant
with the rc scripting stuff.

All the variables used by mountd are set in /usr/src/libexec/rc/rc.conf
and will be updated by the system's /etc/rc.conf file(s).
As such, I thought the values for all those variables were available to
the script?

I'll resign as a reviewer, since I do not know the rc script stuff, although
I'll note the change looks fine to me.

load_rc_config always loads /etc/rc.conf but does not load everything under /etc/rc.conf.d, so if one service needs to inspect configuration variables belonging to another, it must explicitly load_rc_config that other service in case those variables are set in /etc/rc.conf.d.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 24 2025, 1:01 PM
This revision was automatically updated to reflect the committed changes.