Commit | Line | Data |
---|---|---|
952b5ded KB |
1 | #!/bin/sh - |
2 | # | |
09e4bdec | 3 | # @(#)weekly 5.2 (Berkeley) %G% |
952b5ded KB |
4 | # |
5 | host=`hostname | sed -e 's/\..*//'` | |
6 | echo "Subject: $host weekly run output" | |
7 | ||
8 | #echo "" | |
9 | #echo "Removing old .o files:" | |
10 | #find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \; | |
11 | ||
12 | if [ -f /usr/lib/uucp/clean.weekly ]; then | |
13 | echo "" | |
14 | echo "Cleaning up UUCP:" | |
15 | echo /usr/lib/uucp/clean.weekly | su daemon | |
16 | fi | |
17 | ||
18 | echo "" | |
19 | echo "Rotating messages:" | |
20 | cd /usr/adm | |
21 | if [ -f messages.2 ]; then mv -f messages.2 messages.3; fi | |
22 | if [ -f messages.1 ]; then mv -f messages.1 messages.2; fi | |
23 | if [ -f messages.0 ]; then mv -f messages.0 messages.1; fi | |
24 | mv -f messages messages.0 | |
25 | cp /dev/null messages | |
26 | chmod 644 messages | |
27 | kill -1 `cat /etc/syslog.pid` | |
28 | cd / | |
29 | ||
952b5ded KB |
30 | # not until su can run a uid with no shell |
31 | #echo "" | |
32 | #echo "Rebuilding find database:" | |
33 | #su nobody << EOF | |
34 | # /usr/lib/find/updatedb | |
35 | #EOF |