bgfsck (180563) | bgfsck (197947) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/bgfsck 180563 2008-07-16 19:22:48Z dougb $ | 3# $FreeBSD: head/etc/rc.d/bgfsck 197947 2009-10-10 22:17:03Z dougb $ |
4# 5 6# PROVIDE: bgfsck 7# REQUIRE: cron devfs syslogd 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 --- 14 unchanged lines hidden (view full) --- 26 return 0 27 fi 28 29 bgfsck_msg='Starting background file system checks' 30 if [ "${background_fsck_delay}" -gt 0 ]; then 31 bgfsck_msg="${bgfsck_msg} in ${background_fsck_delay} seconds" 32 fi 33 if [ -z "${rc_force}" ]; then | 4# 5 6# PROVIDE: bgfsck 7# REQUIRE: cron devfs syslogd 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 --- 14 unchanged lines hidden (view full) --- 26 return 0 27 fi 28 29 bgfsck_msg='Starting background file system checks' 30 if [ "${background_fsck_delay}" -gt 0 ]; then 31 bgfsck_msg="${bgfsck_msg} in ${background_fsck_delay} seconds" 32 fi 33 if [ -z "${rc_force}" ]; then |
34 [ -z "${rc_quiet}" ] && echo "${bgfsck_msg}." | 34 check_startmsgs && echo "${bgfsck_msg}." |
35 fi 36 37 (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \ 38 logger -p daemon.notice -t fsck & 39} 40 41load_rc_config $name 42run_rc_command "$1" | 35 fi 36 37 (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \ 38 logger -p daemon.notice -t fsck & 39} 40 41load_rc_config $name 42run_rc_command "$1" |