1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/bgfsck 113904 2003-04-23 15:38:02Z matusita $
4#
5
6# PROVIDE: bgfsck
7# REQUIRE: cron devfs
8# KEYWORD: FreeBSD
9
10. /etc/rc.subr
11
--- 6 unchanged lines hidden (view full) ---
18{
19 bgfsck_msg='Starting background file system checks'
20 if [ ${background_fsck_delay:=0} -gt 0 ]; then
21 bgfsck_msg="${bgfsck_msg} in ${background_fsck_delay} seconds"
22 fi
23 echo "${bgfsck_msg}."
24
25 (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \
26 logger -p daemon.notice -t fsck &
27}
28
29load_rc_config $name
30run_rc_command "$1"
2#
3# $FreeBSD: head/etc/rc.d/bgfsck 113904 2003-04-23 15:38:02Z matusita $
4#
5
6# PROVIDE: bgfsck
7# REQUIRE: cron devfs
8# KEYWORD: FreeBSD
9
10. /etc/rc.subr
11
--- 6 unchanged lines hidden (view full) ---
18{
19 bgfsck_msg='Starting background file system checks'
20 if [ ${background_fsck_delay:=0} -gt 0 ]; then
21 bgfsck_msg="${bgfsck_msg} in ${background_fsck_delay} seconds"
22 fi
23 echo "${bgfsck_msg}."
24
25 (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \
26 logger -p daemon.notice -t fsck &
27}
28
29load_rc_config $name
30run_rc_command "$1"