summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/bgfsck
blob: ae081f0941317f8587da217744f63e3236bc26c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: bgfsck
# REQUIRE: cron devfs
# KEYWORD: FreeBSD

. /etc/rc.subr

name="background-fsck"
rcvar="background_fsck"
start_precmd="echo 'Starting background file system checks'"
start_cmd="nice -4 fsck -B -p 2>&1 | logger -p daemon.notice &"
stop_cmd=":"

load_rc_config $name
run_rc_command "$1"
OpenPOWER on IntegriCloud