Bug 293652 - rc(8): Manpage either missing NETWORK placeholder or needs to remove it from /etc/rc.d/
Summary: rc(8): Manpage either missing NETWORK placeholder or needs to remove it from ...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Michael Osipov
URL: https://reviews.freebsd.org/D55712
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-07 20:39 UTC by Michael Osipov
Modified: 2026-04-15 09:08 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov freebsd_committer freebsd_triage 2026-03-07 20:39:28 UTC
From a dispute in Bug 292407:
rc.8 contains:
                            NETWORKING       Ensure basic network services
                                              are running, including general
                                              network configuration.

Some RC scripts in ports "REQUIRE: NETWORK" which is not documented, but "/etc/rc.d/NETWORKING" defines it "PROVIDE: NETWORKING NETWORK".

In CURRENT it was cleaned up some time ago:
commit 034669e856211cbc55d6ac7119629701d182647d
Author: Edward Tomasz Napierala <trasz@FreeBSD.org>
Date:   2021-04-05T16:57:44+01:00

    rc: replace NETWORK with NETWORKING

    This improves consistency; the NETWORKING script provides both,
    so there should be no functional change.

    Differential Revision:  https://reviews.freebsd.org/D29587

Either the additonal value should be publically documented or completely removed or at least all port RC files updated for the canonical value.
Comment 1 Michael Osipov freebsd_committer freebsd_triage 2026-03-07 20:46:29 UTC
Affected ports:
./databases/mongodb70/files/mongod.in:# REQUIRE: NETWORK ldconfig
./databases/mongodb80/files/mongod.in:# REQUIRE: NETWORK ldconfig
./net/kea-devel/files/kea.in:# REQUIRE: NETWORK netif routing %%REQ_MYSQL%% %%REQ_PGSQL%%
./net/kea/files/kea.in:# REQUIRE: NETWORK netif routing %%REQ_MYSQL%% %%REQ_PGSQL%%
./net/qadsl/files/qadsl.in:# REQUIRE: NETWORK
./security/openca-ocspd/files/ocspd.in:# REQUIRE: NETWORK
./sysutils/cbsd-mq-router/files/cbsd-mq-router.in:# REQUIRE: NETWORK

The base system is clean.
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-03-13 11:24:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=524b57fcc54dedb49920b8fec0ca8f19b82018b1

commit 524b57fcc54dedb49920b8fec0ca8f19b82018b1
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-07 21:15:08 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-03-13 11:23:32 +0000

    net/kea{,-devel}: Use documented placeholder NETWOKING in RC scripts

    PR:             293652
    Approved by:    apevnev@me.com (maintainer)
    Differential Revision:  https://reviews.freebsd.org/D55712

 net/kea-devel/Makefile     | 1 +
 net/kea-devel/files/kea.in | 2 +-
 net/kea/Makefile           | 2 +-
 net/kea/files/kea.in       | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-03-22 16:26:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e241fc4af8f35b3f1bd1ac9312fa2ef7e78b111

commit 6e241fc4af8f35b3f1bd1ac9312fa2ef7e78b111
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-07 21:15:08 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-03-22 16:25:34 +0000

    net/qadsl: Use documented placeholder NETWOKING in RC scripts

    PR:             293652
    Approved by:    ports (blanket timeout)
    Differential Revision:  https://reviews.freebsd.org/D55712

 net/qadsl/Makefile       | 2 +-
 net/qadsl/files/qadsl.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-03-22 17:23:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c5ebe54afbb869ba15b860b7b29b61a6973e1be2

commit c5ebe54afbb869ba15b860b7b29b61a6973e1be2
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-07 21:15:08 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-03-22 17:22:24 +0000

    databases/mongodb{7,8}0: Use documented placeholder NETWOKING in RC scripts

    PR:             293652
    Approved by:    ronald (maintainer timeout)
    Differential Revision:  https://reviews.freebsd.org/D55712

 databases/mongodb70/Makefile        | 1 +
 databases/mongodb70/files/mongod.in | 2 +-
 databases/mongodb80/Makefile        | 2 +-
 databases/mongodb80/files/mongod.in | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-03-22 17:27:35 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d27c53d9ebdd937e4c1d80e71dba05306add74d3

commit d27c53d9ebdd937e4c1d80e71dba05306add74d3
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-07 21:15:08 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-03-22 17:26:16 +0000

    security/openca-ocspd: Use documented placeholder NETWOKING in RC scripts

    PR:             293652
    Approved by:    bruno@ruomad.net (maintainer timeout)
    Differential Revision:  https://reviews.freebsd.org/D55712

 security/openca-ocspd/Makefile       | 2 +-
 security/openca-ocspd/files/ocspd.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-03-22 17:28:36 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=204908c2017b3560301d94dc710ddadab1984845

commit 204908c2017b3560301d94dc710ddadab1984845
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-07 21:15:08 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-03-22 17:27:10 +0000

    sysutils/cbsd-mq-router: Use documented placeholder NETWOKING in RC scripts

    PR:             293652
    Approved by:    olevole@olevole.ru (maintainer timeout)
    Differential Revision:  https://reviews.freebsd.org/D55712

 sysutils/cbsd-mq-router/Makefile                | 2 +-
 sysutils/cbsd-mq-router/files/cbsd-mq-router.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 7 Michael Osipov freebsd_committer freebsd_triage 2026-03-22 17:32:51 UTC
All ports have been cleaned up, only base system remains.
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-03-26 00:52:54 UTC
A commit in branch 2026Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=70fc40df75eb1ef8c830d50e6f7c7987a2809e94

commit 70fc40df75eb1ef8c830d50e6f7c7987a2809e94
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-07 21:15:08 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-26 00:51:52 +0000

    net/kea{,-devel}: Use documented placeholder NETWOKING in RC scripts

    PR:             293652
    Approved by:    apevnev@me.com (maintainer)
    Differential Revision:  https://reviews.freebsd.org/D55712

    (cherry picked from commit 524b57fcc54dedb49920b8fec0ca8f19b82018b1)

 net/kea-devel/Makefile     | 1 +
 net/kea-devel/files/kea.in | 2 +-
 net/kea/Makefile           | 2 +-
 net/kea/files/kea.in       | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
Comment 9 Jose Luis Duran freebsd_committer freebsd_triage 2026-04-06 15:05:53 UTC
I think the reason why NETWORK was renamed to NETWORKING was to allow rc.d to be on a case insensitive file system, preventing conflicts with NetBSD's 'network' (https://github.com/NetBSD/src/blob/trunk/etc/rc.d/network).
The original change stems from: https://github.com/NetBSD/src/commit/e00fb37f1600af34cb5dfb0b1096dd91ff4ba835

If you plan on documenting that NETWORK is an alias to NETWORKING, maybe also add that its use is discouraged?
Comment 10 Michael Osipov freebsd_committer freebsd_triage 2026-04-06 18:36:43 UTC
(In reply to Jose Luis Duran from comment #9)

Thanks, this is an interesting fact. Based on this I'd prefer to remove the alias in 16-CURRENT.
Comment 11 Alexey Dokuchaev freebsd_committer freebsd_triage 2026-04-07 17:24:23 UTC
(In reply to Michael Osipov from comment #10)
> Based on this I'd prefer to remove the alias in 16-CURRENT.
I agree, keeping two names just adds more confusion rather than actual value.
Comment 12 commit-hook freebsd_committer freebsd_triage 2026-04-15 09:07:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=47a9af4b39bf174efed7f6d43644d4b0bc0c9886

commit 47a9af4b39bf174efed7f6d43644d4b0bc0c9886
Author:     Aotian Cao <cat1890693@gmail.com>
AuthorDate: 2026-04-08 07:58:00 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-04-15 09:06:32 +0000

    rc.d/NETWORKING: remove the NETWORK alias

    NETWORKING is the documented placeholder, while
    /etc/rc.d/NETWORKING still provides the legacy alias
    NETWORK.

    The NETWORKING script was originally introduced to avoid
    conflicts with NetBSD's lowercase network script on
    case-insensitive file systems.  The NETWORK alias was
    retained for compatibility with older scripts.

    Following the discussion in PR 293652, remove the legacy
    NETWORK alias from 16-CURRENT.  Keeping both names adds
    more confusion than value now that NETWORKING is the
    documented placeholder and current base system and ports
    tree uses are already clean.

    Add an UPDATING entry to note that local RC scripts using
    REQUIRE: NETWORK should be migrated to REQUIRE: NETWORKING.

    PR:             293652
    Reviewed by:    michaelo, jlduran
    Relnotes:       yes
    Differential Revision:  https://reviews.freebsd.org/D56300

 UPDATING                   | 6 ++++++
 libexec/rc/rc.d/NETWORKING | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
Comment 13 Michael Osipov freebsd_committer freebsd_triage 2026-04-15 09:08:27 UTC
All ports cleaned up, alias removed from main.