Page MenuHomeFreeBSD

rc.d/sendmail: Fix the rcorder block
ClosedPublic

Authored by 0mp on Oct 4 2024, 12:29 PM.
Tags
Referenced Files
F142374252: D46924.id.diff
Mon, Jan 19, 6:40 AM
F142365814: D46924.id144573.diff
Mon, Jan 19, 3:37 AM
Unknown Object (File)
Mon, Jan 12, 9:31 AM
Unknown Object (File)
Mon, Dec 29, 5:17 AM
Unknown Object (File)
Dec 2 2025, 12:18 PM
Unknown Object (File)
Nov 25 2025, 7:44 AM
Unknown Object (File)
Nov 24 2025, 2:16 PM
Unknown Object (File)
Nov 13 2025, 12:25 PM
Subscribers

Details

Summary

rcorder(8) requires the rcorder block to be an uninterrupted sequence of
REQUIRE, PROVIDE, BEFORE, and KEYWORD lines. Having a comment in between
REQUIRE and KEYWORD makes rcorder stop parsing the block when it reaches
the comment. Fix that by moving the comment out from the rcorder block.

MFC after: 3 days

Test Plan

After the patch is applied, rcorder will report sendmail as having the shutdown keyword:

rcorder -k shutdown /etc/rc.d/* | grep sendmail

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59737
Build 56623: arc lint + arc unit

Event Timeline

0mp requested review of this revision.Oct 4 2024, 12:29 PM
0mp added reviewers: bnovkov, christos, markj.
0mp added a project: rc.

This seems fine to me. Looks like it's been broken for a rather long time.

What exactly is the effect? Does sendmail actually need the shutdown keyword?

This revision is now accepted and ready to land.Oct 9 2024, 3:20 PM

What exactly is the effect? Does sendmail actually need the shutdown keyword?

Yes, to ensure a clean shutdown of active SMTP connections (and writing any in memory queue files).

What exactly is the effect? Does sendmail actually need the shutdown keyword?

Yes, to ensure a clean shutdown of active SMTP connections (and writing any in memory queue files).

Great info! Thanks!