summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/daily24
-rw-r--r--share/man/man8/daily.87
2 files changed, 4 insertions, 27 deletions
diff --git a/etc/daily b/etc/daily
index 2d8f3465b06..2399fc391e0 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,12 +1,10 @@
-#!/bin/sh -
#
-# $OpenBSD: daily,v 1.56 2006/10/26 12:20:55 ajacoutot Exp $
+# $OpenBSD: daily,v 1.57 2009/05/03 17:16:12 schwarze Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
umask 022
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
-bak=/var/backups
sysctl -n kern.version
uptime
@@ -58,26 +56,6 @@ if [ -d /var/rwho -a ! -L /var/rwho ] ; then
find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; }
fi
-#find / \( ! -fstype local -o -fstype rdonly \
-# -o -fstype procfs \) -a -prune -o \
-# -name 'lost+found' -a -prune -o \
-# -name '*.core' -a -print -o \
-# \( -name '[#,]*' -o -name '.#*' -o -name a.out \
-# -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
-# -a -atime +3 -a -execdir rm -f -- {} \; -a -print > $TMP
-
-if egrep -q '\.core$' $TMP; then
- echo ""
- echo "Possible core dumps:"
- egrep '\.core$' $TMP
-fi
-
-if egrep -qv '\.core$' $TMP; then
- echo ""
- echo "Deleted files:"
- egrep -v '\.core$' $TMP
-fi
-
if [ -d /var/msgs -a ! -L /var/msgs ]; then
msgs -c
fi
diff --git a/share/man/man8/daily.8 b/share/man/man8/daily.8
index 5acffa7c863..5ccc11780d9 100644
--- a/share/man/man8/daily.8
+++ b/share/man/man8/daily.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: daily.8,v 1.8 2007/05/31 19:19:59 jmc Exp $
+.\" $OpenBSD: daily.8,v 1.9 2009/05/03 17:16:12 schwarze Exp $
.\"
.\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: May 3 2009 $
.Dt DAILY 8
.Os
.Sh NAME
@@ -81,8 +81,6 @@ Removes stale files from the
.Xr rwhod 8
database.
.It
-Checks for core dumps.
-.It
Removes system messages older than 21 days for the
.Xr msgs 1
utility.
@@ -252,6 +250,7 @@ Root
.Xr rwho 1 ,
.Xr whatis 1 ,
.Xr crontab 5 ,
+.Xr ac 8 ,
.Xr accton 8 ,
.Xr cron 8 ,
.Xr dump 8 ,