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, Apr 18, 2:44 PM
Unknown Object (File)
Fri, Mar 22, 3:21 PM
Unknown Object (File)
Mar 9 2024, 3:12 PM
Unknown Object (File)
Mar 9 2024, 3:12 PM
Unknown Object (File)
Mar 9 2024, 3:12 PM
Unknown Object (File)
Mar 9 2024, 2:11 PM
Unknown Object (File)
Dec 20 2023, 7:17 AM
Unknown Object (File)
Dec 12 2023, 11:57 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 Not Applicable
Unit
Tests Not Applicable

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