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 rc=0 # nothing to do 22 else 23 echo "" 24 echo "Running news.expire:" 25 26 /etc/news.expire && rc=0 || rc=3 27 fi;; 28 29 *) rc=0;; 30esac 31 32exit $rc 33