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.
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"
Thanks. Looks like something new for 4.9, so please do commit this.
State Changed From-To: open->closed Committed, thanks.