The branch main has been updated by 0mp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8751fbe36ff02ed695f02132ee6eac723d2bbe3f

commit 8751fbe36ff02ed695f02132ee6eac723d2bbe3f
Author:     Mateusz Piotrowski <0...@freebsd.org>
AuthorDate: 2024-10-04 12:26:45 +0000
Commit:     Mateusz Piotrowski <0...@freebsd.org>
CommitDate: 2024-10-10 11:43:37 +0000

    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
---
 libexec/rc/rc.d/sendmail | 5 +++--
 1 file 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.

Reply via email to