forked from Lainports/freebsd-ports
* Calculate delays in microseconds, so that delays of less than one second between reads (needed to implement rates exceeding 64KB/sec) do not get rounded down to zero. * Fix a reinitialization problem when handling SIGHUP. * Additional debug messages (only with -d). * Comment and manpage improvememts - Pass maintainership to submitter PR: ports/115853 ports/143566 Submitted by: perryh@pluto.rain.com
23 lines
339 B
Bash
23 lines
339 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: diskcheckd
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
|
|
# Add the following line to /etc/rc.conf to enable diskcheckd:
|
|
#
|
|
# diskcheckd_enable="YES"
|
|
|
|
: ${diskcheckd_enable="NO"}
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="diskcheckd"
|
|
rcvar=`set_rcvar`
|
|
command=%%PREFIX%%/sbin/diskcheckd
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|