Page MenuHomeFreeBSD

daily 150.clean-hoststat: suppress error when using dma
ClosedPublic

Authored by karels on Dec 15 2022, 3:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 12:09 AM
Unknown Object (File)
Mon, Apr 29, 5:50 PM
Unknown Object (File)
Fri, Apr 26, 9:59 PM
Unknown Object (File)
Fri, Apr 26, 9:59 PM
Unknown Object (File)
Fri, Apr 26, 9:59 PM
Unknown Object (File)
Fri, Apr 26, 8:08 PM
Unknown Object (File)
Fri, Apr 26, 6:26 PM
Unknown Object (File)
Thu, Apr 18, 2:44 PM
Subscribers

Details

Summary

dma(8) does not have hoststat or purgestat, so this script produces
an error from the daily script. We could disable this script, but
that would mean yet another change to switch back to sendmail. Check
for purgestat in mailer.conf before attempting either hoststat or
purgestat.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48729
Build 45615: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Dec 16 2022, 10:13 AM
pstef added inline comments.
usr.sbin/periodic/etc/daily/150.clean-hoststat
17

It seems to me that your version is a bit too simple.

Adopt suggestion, change expression to avoid commented purgestat

This revision now requires review to proceed.Dec 16 2022, 1:26 PM
karels added inline comments.
usr.sbin/periodic/etc/daily/150.clean-hoststat
17

Thanks, that's a good suggestion.

karels marked an inline comment as done.
This revision is now accepted and ready to land.Dec 16 2022, 2:48 PM