|
|
1.1 root 1: #! /bin/sh
2: # This is how I do it on seismo.
3: umask 002
4:
5: # Prevent additions to history file while expire is running
6: mv /usr/bin/rnews /usr/bin/rnews.x
7: echo 'exec cat >/usr/spool/news/rnews.$$' >/usr/bin/rnews
8: chmod 4755 /usr/bin/rnews
9: /etc/chown news /usr/bin/rnews
10:
11: # actually expire the articles
12: cd /usr/lib/news
13: /usr/lib/news/expire -v2 -a net.lang.f77,net.lang.c,net.bugs,net.cooks,net.news.newsite,dc.dining
14:
15: # get a fresh logfile
16: cd /usr/spool/log
17: mv news.5 news.6
18: mv news.4 news.5
19: mv news.3 news.4
20: mv news.2 news.3
21: mv news.1 news.2
22: mv news.0 news.1
23: mv news news.0
24: cp /dev/null news
25: /etc/chown news news*
26:
27: # turn rnews loose
28: mv /usr/bin/rnews.x /usr/bin/rnews
29: cd /usr/spool/news
30: for i in rnews.*
31: do
32: /usr/bin/rnews <$i
33: rm -f $i
34: done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.