diff options
author | ru <ru@FreeBSD.org> | 2006-08-29 08:49:58 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-08-29 08:49:58 +0000 |
commit | 8b1d56c480d385e57f35df504f087451deb3dcc3 (patch) | |
tree | a78a0a4f16cd9b34ecacd641d6539d5c8fd5cdd2 /etc | |
parent | 6cce3965d2c43e942165744079a1bbc6bcfbf90f (diff) | |
download | FreeBSD-src-8b1d56c480d385e57f35df504f087451deb3dcc3.zip FreeBSD-src-8b1d56c480d385e57f35df504f087451deb3dcc3.tar.gz |
The kvm_mkdb(8) is long dead.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/periodic.conf | 5 | ||||
-rwxr-xr-x | etc/periodic/weekly/120.clean-kvmdb | 49 | ||||
-rw-r--r-- | etc/periodic/weekly/Makefile | 3 |
3 files changed, 1 insertions, 56 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf index 28fd1c1..d81ef22 100644 --- a/etc/defaults/periodic.conf +++ b/etc/defaults/periodic.conf @@ -199,11 +199,6 @@ weekly_show_success="YES" # scripts returning 0 weekly_show_info="YES" # scripts returning 1 weekly_show_badconfig="NO" # scripts returning 2 -# 120.clean-kvmdb -weekly_clean_kvmdb_enable="YES" # Clean kvmdb weekly -weekly_clean_kvmdb_days=7 # If not accessed for -weekly_clean_kvmdb_verbose="YES" # Mention files deleted - # 310.locate weekly_locate_enable="YES" # Update locate weekly diff --git a/etc/periodic/weekly/120.clean-kvmdb b/etc/periodic/weekly/120.clean-kvmdb deleted file mode 100755 index 603e70b..0000000 --- a/etc/periodic/weekly/120.clean-kvmdb +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -# -# $FreeBSD$ -# - -# If there is a global system configuration file, suck it in. -# -if [ -r /etc/defaults/periodic.conf ]; then - . /etc/defaults/periodic.conf - source_periodic_confs -fi - -case "$weekly_clean_kvmdb_enable" in - [Yy][Ee][Ss]) - if [ ! -d /var/db ] - then - echo '$weekly_clean_kvmdb_enable is set but /var/db' \ - "doesn't exist" - rc=2 - elif [ -z "$weekly_clean_kvmdb_days" ] - then - echo '$weekly_clean_kvmdb_enable is set but' \ - '$weekly_clean_kvmdb_days is not' - rc=2 - else - echo "" - echo "Cleaning up kernel database files:" - - kernel=`sysctl -n kern.bootfile` - kernel=kvm_${kernel##*/}.db - - case "$weekly_clean_kvmdb_verbose" in - [Yy][Ee][Ss]) - print=-print;; - *) - print=;; - esac - - rc=$(find /var/db -name "kvm_*.db" ! -name $kernel \ - -atime +$weekly_clean_kvmdb_days -delete $print | - tee /dev/stderr | wc -l) - [ -z "$print" ] && rc=0 - [ $rc -gt 1 ] && rc=1 - fi;; - - *) rc=0;; -esac - -exit $rc diff --git a/etc/periodic/weekly/Makefile b/etc/periodic/weekly/Makefile index 090fa6b..bc97fa9 100644 --- a/etc/periodic/weekly/Makefile +++ b/etc/periodic/weekly/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ -FILES= 120.clean-kvmdb \ - 310.locate \ +FILES= 310.locate \ 320.whatis \ 330.catman \ 340.noid \ |