diff options
-rwxr-xr-x | etc/periodic/daily/120.clean-preserve | 3 | ||||
-rwxr-xr-x | etc/periodic/daily/130.clean-msgs | 5 | ||||
-rwxr-xr-x | etc/periodic/daily/140.clean-rwho | 5 | ||||
-rwxr-xr-x | etc/periodic/daily/220.backup-distfile | 4 | ||||
-rwxr-xr-x | etc/periodic/daily/300.calendar | 3 | ||||
-rwxr-xr-x | etc/periodic/daily/310.accounting | 3 | ||||
-rwxr-xr-x | etc/periodic/daily/320.rdist | 3 | ||||
-rwxr-xr-x | etc/periodic/daily/340.uucp | 3 | ||||
-rwxr-xr-x | etc/periodic/daily/410.status-uucp | 5 | ||||
-rwxr-xr-x | etc/periodic/daily/420.status-network | 3 | ||||
-rwxr-xr-x | etc/periodic/daily/450.status-security | 5 | ||||
-rwxr-xr-x | etc/periodic/weekly/300.uucp | 3 | ||||
-rwxr-xr-x | etc/periodic/weekly/330.catman | 3 | ||||
-rwxr-xr-x | etc/periodic/weekly/999.local | 3 |
14 files changed, 32 insertions, 19 deletions
diff --git a/etc/periodic/daily/120.clean-preserve b/etc/periodic/daily/120.clean-preserve index a63ccc3e1449..1a00c1284065 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 52796415efe9..fc12425fc911 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 3a20deecbca2..f9261e3690a4 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 59defc49b8c8..96a0529f91ee 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 8e5d195c6b58..d7cdac4484c2 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 9162401b4f84..4f437a8fd492 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 73375faa7e88..6299d8a1d417 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 d558e0499ac1..0fc51fcc02d2 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 1c764216218c..ac21f6f9a9e5 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 e61f31145de5..b22d0a48240d 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 6a1f040830fa..7eca5073d826 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 eceb2c64f064..a434f07e4183 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 cc2030e7392e..0444ada068fe 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 fb9606edb64c..662750865611 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 |