Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102799888
D37712.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
690 B
Referenced Files
None
Subscribers
None
D37712.diff
View Options
diff --git a/usr.sbin/periodic/etc/daily/150.clean-hoststat b/usr.sbin/periodic/etc/daily/150.clean-hoststat
--- a/usr.sbin/periodic/etc/daily/150.clean-hoststat
+++ b/usr.sbin/periodic/etc/daily/150.clean-hoststat
@@ -2,7 +2,7 @@
#
# $FreeBSD$
#
-# Remove stale persistent host status files
+# Remove stale persistent host status files if the mailer supports it.
#
# If there is a global system configuration file, suck it in.
@@ -14,7 +14,9 @@
case "$daily_clean_hoststat_enable" in
[Yy][Ee][Ss])
- if [ -z "$(hoststat 2>&1)" ]; then
+ if ! grep -q '^purgestat' /etc/mail/mailer.conf; then
+ rc=3
+ elif [ -z "$(hoststat 2>&1)" ]; then
rc=2
else
echo ""
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 8:39 AM (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14694041
Default Alt Text
D37712.diff (690 B)
Attached To
Mode
D37712: daily 150.clean-hoststat: suppress error when using dma
Attached
Detach File
Event Timeline
Log In to Comment