]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - etc/rc.d/ddb
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / etc / rc.d / ddb
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: ddb
7 # REQUIRE: dumpon
8 # BEFORE: disks
9 # KEYWORD: nojail
10
11 . /etc/rc.subr
12
13 name="ddb"
14 rcvar="ddb_enable"
15 command="/sbin/${name}"
16 start_precmd="ddb_prestart"
17 stop_cmd=":"
18
19 ddb_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
27 load_rc_config $name
28
29 required_files="${ddb_config}"
30 command_args="${ddb_config}"
31
32 run_rc_command "$1"