summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-08-17 17:55:45 +0000
committerpst <pst@FreeBSD.org>1997-08-17 17:55:45 +0000
commit68eaf42a45c6a93b31b887ff4e78aae07cbd8d9e (patch)
tree888aec35f6b4de9cb9942a64bb95ef24847be4ae /etc/periodic
parent738fa2d3d223c8a7e7914e2ea0d2ac114e9833f4 (diff)
downloadFreeBSD-src-68eaf42a45c6a93b31b887ff4e78aae07cbd8d9e.zip
FreeBSD-src-68eaf42a45c6a93b31b887ff4e78aae07cbd8d9e.tar.gz
Cosmetic changes.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/120.clean-preserve3
-rwxr-xr-xetc/periodic/daily/130.clean-msgs5
-rwxr-xr-xetc/periodic/daily/140.clean-rwho5
-rwxr-xr-xetc/periodic/daily/220.backup-distfile4
-rwxr-xr-xetc/periodic/daily/300.calendar3
-rwxr-xr-xetc/periodic/daily/310.accounting3
-rwxr-xr-xetc/periodic/daily/320.rdist3
-rwxr-xr-xetc/periodic/daily/340.uucp3
-rwxr-xr-xetc/periodic/daily/410.status-uucp5
-rwxr-xr-xetc/periodic/daily/420.status-network3
-rwxr-xr-xetc/periodic/daily/450.status-security5
-rwxr-xr-xetc/periodic/weekly/300.uucp3
-rwxr-xr-xetc/periodic/weekly/330.catman3
-rwxr-xr-xetc/periodic/weekly/999.local3
14 files changed, 32 insertions, 19 deletions
diff --git a/etc/periodic/daily/120.clean-preserve b/etc/periodic/daily/120.clean-preserve
index a63ccc3..1a00c12 100755
--- a/etc/periodic/daily/120.clean-preserve
+++ b/etc/periodic/daily/120.clean-preserve
@@ -1,10 +1,11 @@
#!/bin/sh
#
-# $Id: 120.clean-preserve,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 120.clean-preserve,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -d /var/preserve ]; then
echo ""
echo "Removing stale files from /var/preserve:"
+
cd /var/preserve && find . ! -name . -mtime +7 -exec rm -f -- {} \;
fi
diff --git a/etc/periodic/daily/130.clean-msgs b/etc/periodic/daily/130.clean-msgs
index 5279641..fc12425 100755
--- a/etc/periodic/daily/130.clean-msgs
+++ b/etc/periodic/daily/130.clean-msgs
@@ -1,11 +1,12 @@
#!/bin/sh
#
-# $Id: 130.clean-msgs,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 130.clean-msgs,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
# remove system messages older than 21 days
#
if [ -d /var/msgs ] ; then
- echo
+ echo ""
echo "Cleaning out old system announcements:"
+
msgs -c
fi
diff --git a/etc/periodic/daily/140.clean-rwho b/etc/periodic/daily/140.clean-rwho
index 3a20dee..f9261e3 100755
--- a/etc/periodic/daily/140.clean-rwho
+++ b/etc/periodic/daily/140.clean-rwho
@@ -1,11 +1,12 @@
#!/bin/sh
#
-# $Id: 140.clean-rwho,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 140.clean-rwho,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -d /var/rwho ] ; then
echo ""
- echo "Removing stale files from /var/rwho"
+ echo "Removing stale files from /var/rwho:"
+
cd /var/rwho && find . ! -name . -mtime +7 -exec rm -f -- {} \;
fi
diff --git a/etc/periodic/daily/220.backup-distfile b/etc/periodic/daily/220.backup-distfile
index 59defc4..96a0529 100755
--- a/etc/periodic/daily/220.backup-distfile
+++ b/etc/periodic/daily/220.backup-distfile
@@ -1,12 +1,12 @@
#!/bin/sh
#
-# $Id: 220.backup-distfile,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 220.backup-distfile,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
bak=/var/backups
if [ -f /etc/Distfile ]; then
echo ""
- echo "Backing up /etc/Distfile"
+ echo "Backing up /etc/Distfile:"
if cmp -s $bak/Distfile.bak /etc/Distfile; then :; else
mv $bak/Distfile.bak $bak/Distfile.bak2
diff --git a/etc/periodic/daily/300.calendar b/etc/periodic/daily/300.calendar
index 8e5d195..d7cdac4 100755
--- a/etc/periodic/daily/300.calendar
+++ b/etc/periodic/daily/300.calendar
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: 300.calendar,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 300.calendar,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
# `calendar -a' needs to die. Why? Because it's a bad idea, particular
# with networked home directories, but also in general. If you want the
@@ -13,5 +13,6 @@ exit 0 # do not run by default
if [ -f /usr/bin/calendar ] ; then
echo ""
echo "Running calendar:"
+
calendar -a
fi
diff --git a/etc/periodic/daily/310.accounting b/etc/periodic/daily/310.accounting
index 9162401..4f437a8 100755
--- a/etc/periodic/daily/310.accounting
+++ b/etc/periodic/daily/310.accounting
@@ -1,11 +1,12 @@
#!/bin/sh
#
-# $Id: 310.accounting,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
+# $Id: 310.accounting,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -f /var/account/acct ] ; then
echo ""
echo "Rotating accounting logs and gathering statistics:"
+
cd /var/account
if [ -f acct.2 ] ; then mv -f acct.2 acct.3 ; fi
if [ -f acct.1 ] ; then mv -f acct.1 acct.2 ; fi
diff --git a/etc/periodic/daily/320.rdist b/etc/periodic/daily/320.rdist
index 73375fa..6299d8a 100755
--- a/etc/periodic/daily/320.rdist
+++ b/etc/periodic/daily/320.rdist
@@ -1,10 +1,11 @@
#!/bin/sh
#
-# $Id: 320.rdist,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
+# $Id: 320.rdist,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -f /etc/Distfile ]; then
echo ""
echo "Running rdist with /etc/Distfile:"
+
rdist -f /etc/Distfile
fi
diff --git a/etc/periodic/daily/340.uucp b/etc/periodic/daily/340.uucp
index d558e04..0fc51fc 100755
--- a/etc/periodic/daily/340.uucp
+++ b/etc/periodic/daily/340.uucp
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: 340.uucp,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 340.uucp,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
# Local cleanup of UUCP files. This is for backwards compatibility,
# /etc/uuclean.daily doesn't exist by default.
@@ -8,6 +8,7 @@
if [ -d /var/spool/uucp -a -f /etc/uuclean.daily ]; then
echo ""
echo "Cleaning up UUCP:"
+
echo /etc/uuclean.daily | su daemon
fi
diff --git a/etc/periodic/daily/410.status-uucp b/etc/periodic/daily/410.status-uucp
index 1c76421..ac21f6f 100755
--- a/etc/periodic/daily/410.status-uucp
+++ b/etc/periodic/daily/410.status-uucp
@@ -1,10 +1,11 @@
#!/bin/sh
#
-# $Id: 410.status-uucp,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 410.status-uucp,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
if [ -d /var/spool/uucp -a -x /usr/bin/uustat ]; then
echo ""
- echo "uucp status:"
+ echo "UUCP status:"
+
uustat -a
fi
diff --git a/etc/periodic/daily/420.status-network b/etc/periodic/daily/420.status-network
index e61f311..b22d0a4 100755
--- a/etc/periodic/daily/420.status-network
+++ b/etc/periodic/daily/420.status-network
@@ -1,10 +1,11 @@
#!/bin/sh
#
-# $Id: 420.status-network,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
+# $Id: 420.status-network,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
if [ -x /usr/bin/netstat ] ; then
echo ""
echo "Network interface status:"
+
netstat -i
fi
diff --git a/etc/periodic/daily/450.status-security b/etc/periodic/daily/450.status-security
index 6a1f040..7eca507 100755
--- a/etc/periodic/daily/450.status-security
+++ b/etc/periodic/daily/450.status-security
@@ -1,11 +1,12 @@
#!/bin/sh
#
-# $Id: 450.status-security,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 450.status-security,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
if [ -f /etc/security -a -x /usr/sbin/sendmail ] ; then
echo ""
- echo "Security check (output mailed separately)"
+ echo "Security check:"
+ echo " (output mailed separately)"
sh /etc/security 2>&1 | sendmail root
fi
diff --git a/etc/periodic/weekly/300.uucp b/etc/periodic/weekly/300.uucp
index eceb2c6..a434f07 100755
--- a/etc/periodic/weekly/300.uucp
+++ b/etc/periodic/weekly/300.uucp
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: 300.uucp,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
+# $Id: 300.uucp,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
#
# This is really here for backwards compatibility, clean.weekly is not
# created by default anymore.
@@ -8,5 +8,6 @@
if [ -d /var/spool/uucp -a -f /usr/libexec/uucp/clean.weekly ]; then
echo ""
echo "Cleaning up UUCP:"
+
echo /usr/libexec/uucp/clean.weekly | su daemon
fi
diff --git a/etc/periodic/weekly/330.catman b/etc/periodic/weekly/330.catman
index cc2030e..0444ada 100755
--- a/etc/periodic/weekly/330.catman
+++ b/etc/periodic/weekly/330.catman
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: 330.catman,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
+# $Id: 330.catman,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
#
exit 0 # do not run by default
@@ -8,5 +8,6 @@ exit 0 # do not run by default
if [ -x /usr/libexec/catman.local -a -d /usr/share/man/cat1 ] ; then
echo ""
echo "Reformatting manual pages:"
+
echo /usr/libexec/catman.local "${MANPATH}" | su -fm man
fi
diff --git a/etc/periodic/weekly/999.local b/etc/periodic/weekly/999.local
index fb9606e..6627508 100755
--- a/etc/periodic/weekly/999.local
+++ b/etc/periodic/weekly/999.local
@@ -1,10 +1,11 @@
#!/bin/sh -
#
-# $Id: 999.local,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
+# $Id: 999.local,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
#
if [ -f /etc/weekly.local ]; then
echo ""
echo "Running weekly.local:"
+
sh /etc/weekly.local
fi
OpenPOWER on IntegriCloud