Index: etc/rc.d/ddb =================================================================== --- etc/rc.d/ddb (revision 248604) +++ etc/rc.d/ddb (working copy) @@ -19,8 +19,11 @@ stop_cmd=":" ddb_prestart() { # Silently exit if ddb is not enabled - if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then - return 1 + # NOTE: exit is needed here, not return, else rc.subr emits + # a "failed precmd routine" warning when ddb_enable="yes" is + # used on a system which lacks DDB support in the kernel. + if [ -z "`$SYSCTL_N -q debug.ddb.scripting.scripts`" ]; then + exit 1 fi }