1#!/bin/sh 2# 3# $FreeBSD: head/etc/periodic/daily/330.news 65843 2000-09-14 17:19:15Z brian $ 4# 5# Expire news articles 6# (This is present only for backwards compatibility, usually the news 7# system handles this on its own). 8 9# If there is a global system configuration file, suck it in. 10# 11if [ -r /etc/defaults/periodic.conf ] 12then 13 . /etc/defaults/periodic.conf 14 source_periodic_confs 15fi 16 17case "$daily_news_expire_enable" in 18 [Yy][Ee][Ss]) 19 if [ ! -f /etc/news.expire ] 20 then 21 echo '$daily_news_expire_enable is set but /etc/news.expire' \ 22 "doesn't exist" 23 rc=2 24 else 25 echo "" 26 echo "Running news.expire:" 27 28 /etc/news.expire && rc=0 || rc=3 29 fi;; 30 31 *) rc=0;; 32esac 33 34exit $rc 35