vfs/procfs: Add kqueue support
[dragonfly.git] / etc / periodic / daily / 330.news
blob805fb97ff5f6d075fe956c8296b3e149f07deafe
1 #!/bin/sh
3 # $FreeBSD: head/etc/periodic/daily/330.news 65843 2000-09-14 17:19:15Z brian $
5 # Expire news articles
6 # (This is present only for backwards compatibility, usually the news
7 # system handles this on its own).
9 # If there is a global system configuration file, suck it in.
11 if [ -r /etc/defaults/periodic.conf ]
12 then
13 . /etc/defaults/periodic.conf
14 source_periodic_confs
17 case "$daily_news_expire_enable" in
18 [Yy][Ee][Ss])
19 if [ ! -f /etc/news.expire ]
20 then
21 rc=0 # nothing to do
22 else
23 echo ""
24 echo "Running news.expire:"
26 /etc/news.expire && rc=0 || rc=3
27 fi;;
29 *) rc=0;;
30 esac
32 exit $rc