opnsense-src/libexec/rc
Lexi Winter 06c41801af svcj: correctly handle kernels without INET or INET6
If either INET or INET6 is not enabled in the kernel, then the jail(8)
options ip4=<new|inherit> resp. ip6=<new|inherit> are not available.
Detect this case and don't try to provide those options, otherwise
svcjs will not start.

Do this automatically (without a warning) so that net_basic, which
includes both netv4 and netv6, continues to work as expected.

If _svcj_ipaddrs is explicitly configured with an address for an IP
version not supported by the kernel, issue a warning but continue to
start the service.  This can result in the service being started with
fewer addresses than expected, but never more.

Reviewed by:	netchild, des
Approved by:	des (mentor)
Differential Revision:	https://reviews.freebsd.org/D49976
2025-05-28 02:16:30 +01:00
..
rc.d packages: move ctl{d,stat,adm} to the ctl package 2025-05-28 02:16:29 +01:00
tests rc/tests: Fix process flags checks using ps(1) 2025-05-07 11:14:55 +02:00
debug.sh Update libexec/rc/debug.sh and hooks.sh 2024-12-31 10:47:06 -08:00
hooks.sh Update libexec/rc/debug.sh and hooks.sh 2024-12-31 10:47:06 -08:00
Makefile debug.sh take advantage of hooks.sh 2024-09-10 12:04:15 -07:00
netstart libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
network.subr rc: network.subr update consitency with older change (v6/v4 order) 2024-09-05 19:53:57 +00:00
pccard_ether Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc Move fetch of DEBUG_SH from kenv to rc 2024-08-03 10:56:48 -07:00
rc.bsdextended Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.conf Remove vestiges of keyserv(8) 2025-05-23 22:59:33 +01:00
rc.firewall Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.initdiskless Update rc.initdiskless, fix error handling of remount_optional 2025-01-24 12:40:33 -07:00
rc.resume Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.shutdown Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.subr svcj: correctly handle kernels without INET or INET6 2025-05-28 02:16:30 +01:00
rc.suspend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
safe_eval.sh safe_eval allow : and + in values 2025-05-25 20:06:47 -07:00