summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-08-29 08:49:58 +0000
committerru <ru@FreeBSD.org>2006-08-29 08:49:58 +0000
commit8b1d56c480d385e57f35df504f087451deb3dcc3 (patch)
treea78a0a4f16cd9b34ecacd641d6539d5c8fd5cdd2 /etc/periodic
parent6cce3965d2c43e942165744079a1bbc6bcfbf90f (diff)
downloadFreeBSD-src-8b1d56c480d385e57f35df504f087451deb3dcc3.zip
FreeBSD-src-8b1d56c480d385e57f35df504f087451deb3dcc3.tar.gz
The kvm_mkdb(8) is long dead.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/weekly/120.clean-kvmdb49
-rw-r--r--etc/periodic/weekly/Makefile3
2 files changed, 1 insertions, 51 deletions
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 \
OpenPOWER on IntegriCloud