svn commit: r332864 - stable/11/etc/rc.d

Kyle Evans kevans at FreeBSD.org
Sun Apr 22 00:26:36 UTC 2018


Author: kevans
Date: Sun Apr 22 00:26:35 2018
New Revision: 332864
URL: https://svnweb.freebsd.org/changeset/base/332864

Log:
  MFC r332773: 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.
  
  PR:		206291

Modified:
  stable/11/etc/rc.d/ddb
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/rc.d/ddb
==============================================================================
--- stable/11/etc/rc.d/ddb	Sat Apr 21 20:48:03 2018	(r332863)
+++ stable/11/etc/rc.d/ddb	Sun Apr 22 00:26:35 2018	(r332864)
@@ -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


More information about the svn-src-all mailing list