diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2024-10-04 12:26:45 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2024-10-10 11:43:37 +0000 |
commit | 8751fbe36ff02ed695f02132ee6eac723d2bbe3f (patch) | |
tree | ced5c74dcae2633cfb1bacc5ffd025cf5a6d0ceb | |
parent | ff2263469ad0f304b2e5f44f1a62c9b20c0306a3 (diff) | |
download | src-8751fbe36ff0.tar.gz src-8751fbe36ff0.zip |
rc.d/sendmail: Fix stopping service during shutdown
The sendmail service script needs to be stopped during shutdown
to ensure a clean shutdown of active SMTP connections (and writing
any in memory queue files).
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.
Reviewed by: bnovkov, christos, gshapiro, markj
Approved by: bnovkov (mentor), christos (mentor), markj (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D46924
-rwxr-xr-x | libexec/rc/rc.d/sendmail | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rc/rc.d/sendmail b/libexec/rc/rc.d/sendmail index 94100b6d00a9..af84c6d6b548 100755 --- a/libexec/rc/rc.d/sendmail +++ b/libexec/rc/rc.d/sendmail @@ -4,9 +4,10 @@ # PROVIDE: mail # REQUIRE: LOGIN FILESYSTEMS -# we make mail start late, so that things like .forward's are not -# processed until the system is fully operational # KEYWORD: shutdown +# +# We make mail start late, so that things like .forward's are not processed +# until the system is fully operational. # XXX - Get together with sendmail mantainer to figure out how to # better handle SENDMAIL_ENABLE and 3rd party MTAs. |