Add diskcheckd to /etc/rc with a knob in rc.conf.

Make the default setting YES for now to get some experience with it.

Note: If people starts seeing disk errors because of this then it
should not be backed.
This commit is contained in:
Poul-Henning Kamp 2001-06-03 20:15:13 +00:00
parent 849f35cf88
commit 7afdb22d23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77662
2 changed files with 10 additions and 0 deletions

View File

@ -318,6 +318,8 @@ sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO).
sendmail_flags="-bd -q30m" # Flags to sendmail (as a server)
sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-q30m" # Flags to sendmail (outbound only)
diskcheckd_enable="YES" # Run diskcheckd(8) (YES/NO).
diskcheckd_flags="" # Flags to diskcheckd(8).
dumpdev="NO" # Device name to crashdump to (or NO).
savecore_flags="" # Used if dumpdev is enabled above, and present.
enable_quotas="NO" # turn on quotas on startup (or NO).

8
etc/rc
View File

@ -465,6 +465,14 @@ case ${syslogd_enable} in
;;
esac
# Start disk checking daemon if required.
#
case ${diskcheckd_enable} in
[Yy][Ee][Ss])
echo -n ' diskcheckd'; diskcheckd ${diskcheckd_flags}
;;
esac
echo '.'
# Build device name databases if we are not using DEVFS