145153Swollman#!/bin/sh 245153Swollman# 350472Speter# $FreeBSD$ 445153Swollman# 5124080Sgshapiro# Remove stale persistent host status files 661981Sbrian# 745153Swollman 861981Sbrian# If there is a global system configuration file, suck it in. 961981Sbrian# 10101723Sschweikhif [ -r /etc/defaults/periodic.conf ]; then 1161981Sbrian . /etc/defaults/periodic.conf 1261981Sbrian source_periodic_confs 1361981Sbrianfi 1445153Swollman 1561981Sbriancase "$daily_clean_hoststat_enable" in 1661981Sbrian [Yy][Ee][Ss]) 17124080Sgshapiro if [ -z "$(hoststat 2>&1)" ]; then 1865843Sbrian rc=2 1965843Sbrian else 2061981Sbrian echo "" 21108958Swollman echo "Removing stale entries from sendmail host status cache:" 22108958Swollman rc=0 23124080Sgshapiro purgestat || rc=1 2461981Sbrian fi;; 2565843Sbrian 2665843Sbrian *) rc=0;; 2761981Sbrianesac 2865843Sbrian 2965843Sbrianexit $rc 30