summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2004-01-02 18:50:22 +0000
committergshapiro <gshapiro@FreeBSD.org>2004-01-02 18:50:22 +0000
commit88f59471abb7791a83316e70a4fe2e66fd70799d (patch)
tree2f884f45adc25a912bbed67af18cd295a74eb882 /etc/periodic
parent8fe7e8ee2d23f378389245495723f5b0a2c288d7 (diff)
downloadFreeBSD-src-88f59471abb7791a83316e70a4fe2e66fd70799d.zip
FreeBSD-src-88f59471abb7791a83316e70a4fe2e66fd70799d.tar.gz
Use hoststat/purgestat instead of sendmail -bh/-bH so the calls can
be properly mailwrapper'ed. PR: conf/60676 Submitted by: Colin Percival <cperciva@daemonology.net>, maxim MFC after: 4 days
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/150.clean-hoststat6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/periodic/daily/150.clean-hoststat b/etc/periodic/daily/150.clean-hoststat
index 473c45b..460d1a2 100755
--- a/etc/periodic/daily/150.clean-hoststat
+++ b/etc/periodic/daily/150.clean-hoststat
@@ -2,7 +2,7 @@
#
# $FreeBSD$
#
-# Remove stale files in /var/spool/.hoststat
+# Remove stale persistent host status files
#
# If there is a global system configuration file, suck it in.
@@ -14,13 +14,13 @@ fi
case "$daily_clean_hoststat_enable" in
[Yy][Ee][Ss])
- if [ -z "$(sendmail -bh 2>&1)" ]; then
+ if [ -z "$(hoststat 2>&1)" ]; then
rc=2
else
echo ""
echo "Removing stale entries from sendmail host status cache:"
rc=0
- sendmail -bH || rc=1
+ purgestat || rc=1
fi;;
*) rc=0;;
OpenPOWER on IntegriCloud