Bug 57074 - mail/postfix pkg-message needs additional rc.conf entry.
Summary: mail/postfix pkg-message needs additional rc.conf entry.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-22 03:10 UTC by Jonathan Chen
Modified: 2003-12-21 04:42 UTC (History)
0 users

See Also:


Attachments
file.diff (298 bytes, patch)
2003-09-22 03:10 UTC, Jonathan Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Chen 2003-09-22 03:10:15 UTC
The pkg-message for mail/postfix port is missing the pid-file specification
for the rc.conf setup. Without this, we can't use:

    # sh /etc/rc.sendmail stop

Fix: Add the following line to /etc/rc.conf:

    sendmail_pidfile="/var/spool/postfix/pid/master.pid"

This needs to be added to the pkg-message file.
How-To-Repeat: 
With the recommended lines from pkg-message in /etc/rc.conf:

    sendmail_enable="YES"
    sendmail_flags="-bd"
    sendmail_outbound_enable="NO"
    sendmail_submit_enable="NO"
    sendmail_msp_queue_enable="NO"

As root:

    # sh /etc/rc.sendmail start
    # sh /etc/rc.sendmail stop

A "ps ax" will reveal that the postfix procecess are still running.
Comment 1 Jonathan Chen 2003-09-22 03:26:13 UTC
Sigh. Got the diff arguments the wrong way round. The patch should be
as follows the email.
-- 
Jonathan Chen <jonc@chen.org.nz>


--- pkg-message.orig	Mon Sep 22 13:54:07 2003
+++ pkg-message	Mon Sep 22 13:54:26 2003
@@ -4,6 +4,7 @@
 
 sendmail_enable="YES"
 sendmail_flags="-bd"
+sendmail_pidfile="/var/spool/postfix/pid/master.pid"
 sendmail_outbound_enable="NO"
 sendmail_submit_enable="NO"
 sendmail_msp_queue_enable="NO"
Comment 2 Vick Khera 2003-11-03 15:05:28 UTC
Thanks.  Looks like something new for 4.9, so please do commit this.
Comment 3 Pete Fritchman freebsd_committer freebsd_triage 2003-12-21 04:42:51 UTC
State Changed
From-To: open->closed

Committed, thanks.