svn commit: r332773 - head/etc/rc.d

Rodney W. Grimes freebsd at pdx.rh.CN85.dnsmgr.net
Thu Apr 19 15:16:12 UTC 2018


> Author: kevans
> Date: Thu Apr 19 15:02:53 2018
> New Revision: 332773
> URL: https://svnweb.freebsd.org/changeset/base/332773
> 
> Log:
>   Fix ddb rc script
>   
>   r288291 added a call to limits(1), which isn't available before partitions
>   are mounted. This broke the ddb rc script, which does not provide its own
>   start_cmd.
>   
>   Alleviate the situation here by providing a start_cmd. We still have other
>   problems with diskless setups that need to be considered, but this is a
>   start.

Thanks,
Also didn't cy identify a second one of these?
Or am I confusing yet another issue?

>   PR:		206291
>   Submitted by:	cy
>   Discussed with:	rgrimes
>   MFC after:	3 days
> 
> Modified:
>   head/etc/rc.d/ddb
> 
> Modified: head/etc/rc.d/ddb
> ==============================================================================
> --- head/etc/rc.d/ddb	Thu Apr 19 15:02:42 2018	(r332772)
> +++ head/etc/rc.d/ddb	Thu Apr 19 15:02:53 2018	(r332773)
> @@ -15,6 +15,7 @@ desc="DDB kernel debugger"
>  rcvar="ddb_enable"
>  command="/sbin/${name}"
>  start_precmd="ddb_prestart"
> +start_cmd="ddb_start"
>  stop_cmd=":"
>  
>  ddb_prestart()
> @@ -23,6 +24,11 @@ ddb_prestart()
>  	if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
>  		return 1
>  	fi
> +}
> +
> +ddb_start()
> +{
> +	${command} ${command_args}
>  }
>  
>  load_rc_config $name
> 
> 

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the svn-src-all mailing list