diff options
author | guido <guido@FreeBSD.org> | 1994-08-11 17:23:29 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1994-08-11 17:23:29 +0000 |
commit | f7cd7b6184c73fa298ed5852340c9a1f12ba72b3 (patch) | |
tree | fd9534b039b273f89e54be43510a0c1f7e89d3cc | |
parent | 98672b296b6e3079471a145ea5eb5eed90d7fa6f (diff) | |
download | FreeBSD-src-f7cd7b6184c73fa298ed5852340c9a1f12ba72b3.zip FreeBSD-src-f7cd7b6184c73fa298ed5852340c9a1f12ba72b3.tar.gz |
Add rotattion of cron log to weekly.
Reviewed by:
Submitted by: guido
-rw-r--r-- | etc/weekly | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -54,6 +54,16 @@ chmod 644 messages kill -1 `cat /var/run/syslog.pid` cd / +echo "Rotating cron log:" +cd /var/cron +if [ -f log.2 ]; then mv -f log.2 log.3; fi +if [ -f log.1 ]; then mv -f log.1 log.2; fi +if [ -f log.0 ]; then mv -f log.0 log.1; fi +mv -f log log.0 +cp /dev/null log +chmod 600 log +cd / + echo "" echo "Rebuilding locate database:" echo /usr/libexec/locate.updatedb | nice -5 su -m nobody 2>/dev/null |