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
F82932989: D37712.diff
Sat, May 4, 4:07 AM
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
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 48734
Build 45620: 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–19

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–19

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