Deleted Added
full compact
ddb (208307) ddb (230099)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/ddb 208307 2010-05-19 19:03:19Z dougb $
3# $FreeBSD: head/etc/rc.d/ddb 230099 2012-01-14 02:18:41Z dougb $
4#
5
6# PROVIDE: ddb
7# REQUIRE: dumpon
8# BEFORE: disks
9# KEYWORD: nojail
10
11. /etc/rc.subr
12
13name="ddb"
4#
5
6# PROVIDE: ddb
7# REQUIRE: dumpon
8# BEFORE: disks
9# KEYWORD: nojail
10
11. /etc/rc.subr
12
13name="ddb"
14rcvar=`set_rcvar`
14rcvar="ddb_enable"
15command="/sbin/${name}"
16start_precmd="ddb_prestart"
17stop_cmd=":"
18
19ddb_prestart()
20{
21 # Silently exit if ddb is not enabled
22 if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
23 return 1
24 fi
25}
26
27load_rc_config $name
28
29required_files="${ddb_config}"
30command_args="${ddb_config}"
31
32run_rc_command "$1"
15command="/sbin/${name}"
16start_precmd="ddb_prestart"
17stop_cmd=":"
18
19ddb_prestart()
20{
21 # Silently exit if ddb is not enabled
22 if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
23 return 1
24 fi
25}
26
27load_rc_config $name
28
29required_files="${ddb_config}"
30command_args="${ddb_config}"
31
32run_rc_command "$1"