Tue, May 28
In principle this only changes the user side setup (rc.conf), not the ports side. There is no direct ports consumer of this feature and it tries to hook into all services in order to automate configuration changes when service commands are dispatched.
In my work for the automatic service jails (committed last week), I stumbled upon cases (in the base system) where some kind of functions were used to setup variables before starting the actual service, which was not necessary. When the automatic service jail is enabled for such a service, some of this stuff was run outside the service jail and didn't had the desired effect. After changing those scripts to not setup variables like that, it worked.
Yes I just need to wrap up testing for the updated GH PR
Oh and I was going to try merge it :P
So we can close this review?
This won't merge, I'm talking to @imp at https://github.com/freebsd/freebsd-src/pull/1258
Wed, May 22
Mon, May 6
Was committed (tag was Differential not Differential Revision so it did not auto-close).
Mar 27 2024
Mar 26 2024
No takers? This has been in a half-working state in FreeBSD 14 for quite some time. :/
Mar 22 2024
Feb 20 2024
That's the way how DragonFlyBSD devs solved the problem
https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/451640b7cf6bcf7826b901ac9a51647442adb96b
Feb 9 2024
Add SPDX BSD-2-Clause to safe_eval.sh
Feb 7 2024
Use local.rc.subr rather than rc.subr.local
Validate load_rc_config_reader
Feb 6 2024
Implement some feedback
Feb 3 2024
Update doc in debug.sh
Feb 2 2024
rc.subr add comment explaining the no-op Debug{On,Off} and safe_dot
at the end - in case the real ones could not be found.
Tweak debug.sh.8, use .Fn when refering to functions called.
Feb 1 2024
Man page tweaks
Add man page for debug.sh
Jan 31 2024
Further man page tweaks
Make a start on man pages
Fix some style issues in rc.subr
Will have a go at the style issues.
The comments for rc.subr also apply to the new files.
What about a man page update how to turn on the debug feature? To my current understanding DEBUG_SH can be set interactively in the loader, and administratively in loader.conf... maybe also in rc.conf? So more than one man page to touch at least with a cross-ref.
Jan 30 2024
Check for -f as well as -s
This is overcome by D43671
Note: If the format of rc_log is deemed undesirable we could move it (and rc_trace) to rc.subr.local and just put a place holder in rc.subr
I know a few folk are interested in using mac_veriexec, but we could push the guts of vdot etc into rc.subr.local (I've moved it to the end of the file) and just put a place holder here like vdot() { dot "$@"; }. It is the callouts in run_rc_* etc which are most important.
Jan 16 2024
Resigning from this; I tried to provide feedback over IRC, but that was seemingly not well-received (and questions unanswered) and I'm not interested in reviewing this as-is. I'd much prefer splitting it into two scripts, one with, e.g., verbs, that manages wireguard interfaces and then the rc script that simply drives that in an obvious way. The last objection I heard was that there's too much state to pass around, but it's not at all clear why unless this is trying to mix way too much rc.conf configuration in with wg config.
Jan 15 2024
Jan 11 2024
OK for the man page change. Make sure to bump the .Dd when you commit it for this content change.
Thanks for working on this, it's appreciated!