6c1a5e837d
daemon's manpage and probably improved. - Consistently use "filesystem" not "file system". Approved by: bapt, brueffer Differential Revision: D452
34 lines
471 B
Bash
Executable File
34 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ddb
|
|
# REQUIRE: dumpon
|
|
# BEFORE: disks
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ddb"
|
|
desc="DDB kernel debugger"
|
|
rcvar="ddb_enable"
|
|
command="/sbin/${name}"
|
|
start_precmd="ddb_prestart"
|
|
stop_cmd=":"
|
|
|
|
ddb_prestart()
|
|
{
|
|
# Silently exit if ddb is not enabled
|
|
if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
load_rc_config $name
|
|
|
|
required_files="${ddb_config}"
|
|
command_args="${ddb_config}"
|
|
|
|
run_rc_command "$1"
|