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
F102799888: D37712.diff
Sun, Nov 17, 8:39 AM
Unknown Object (File)
Mon, Nov 4, 5:45 PM
Unknown Object (File)
Oct 5 2024, 6:05 AM
Unknown Object (File)
Oct 2 2024, 6:09 PM
Unknown Object (File)
Oct 2 2024, 4:33 PM
Unknown Object (File)
Sep 30 2024, 3:16 PM
Unknown Object (File)
Sep 22 2024, 11:41 PM
Unknown Object (File)
Sep 8 2024, 9:35 AM
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