config root man

Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/etc/rc.d/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/etc/rc.d/devd

#!/bin/sh
#
# $FreeBSD: release/9.1.0/etc/rc.d/devd 231653 2012-02-14 10:16:56Z dougb $
#

# PROVIDE: devd
# REQUIRE: netif
# BEFORE: NETWORKING mountcritremote
# KEYWORD: nojail shutdown

. /etc/rc.subr

name="devd"
rcvar="devd_enable"
command="/sbin/${name}"

start_precmd=${name}_prestart
stop_precmd=find_pidfile

find_pidfile()
{
	if get_pidfile_from_conf pid-file /etc/devd.conf; then
		pidfile="$_pidfile_from_conf"
	else
		pidfile="/var/run/${name}.pid"
	fi
}

devd_prestart ()
{
	find_pidfile

	# If devd is disabled, turn it off in the kernel to avoid memory leaks.
	if ! checkyesno ${rcvar}; then
	    $SYSCTL hw.bus.devctl_disable=1
	fi
}

load_rc_config $name
run_rc_command "$1"

Man Man