Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2024 02:45:28 GMT
From:      "Simon J. Gerraty" <sjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dc501a9ec093 - main - Allow DEBUG_SH=rc:all to debug all rc.d
Message-ID:  <202405220245.44M2jSQp017817@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sjg:

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

commit dc501a9ec093f73d9cbff666df4bf16cd5a358fd
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2024-05-22 02:44:20 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2024-05-22 02:44:20 +0000

    Allow DEBUG_SH=rc:all to debug all rc.d
    
    Usually a bad idea but there are exceptions to every rule.
    Allso debugging all rc.d scripts or all with a given arg.
---
 libexec/rc/rc.subr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index 16b2c9fc5e88..6ed9d24fdf5c 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1076,7 +1076,7 @@ run_rc_command()
 		err 3 'run_rc_command: $name is not set.'
 	fi
 
-	DebugOn rc:$name rc:$name:$rc_arg $name:$rc_arg
+	DebugOn rc:all rc:all:$rc_arg rc:$name rc:$name:$rc_arg $name:$rc_arg
 
 	# Don't repeat the first argument when passing additional command-
 	# line arguments to the command subroutines.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405220245.44M2jSQp017817>