Bug 91721 - mail/postfix: "etc/rc.d/postfix.sh restart" may fail
Summary: mail/postfix: "etc/rc.d/postfix.sh restart" may fail
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: Marcus Alves Grando
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-12 19:40 UTC by NIIMI Satoshi
Modified: 2006-01-12 20:39 UTC (History)
0 users

See Also:


Attachments
postfix.diff (1.21 KB, patch)
2006-01-12 19:40 UTC, NIIMI Satoshi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description NIIMI Satoshi 2006-01-12 19:40:05 UTC
Running "${PREFIX}/etc/rc.d/postfix.sh restart" may produce an error

postfix/postfix-script: fatal: the Postfix mail system is already running

if "postfix stop" takes some time.  It is because the postfix(8)
command just sends a signal to the master(8) daemon and does not wait
the process to be stopped.

The PID file should be checked to restart the daemon reliably.
Comment 1 Edwin Groothuis freebsd_committer 2006-01-12 19:44:09 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Vick Khera 2006-01-12 19:56:44 UTC
I approve, with one minor change.

the postfix_procname variable default should use %%PREFIX%% rather  
than /usr/local directly.

On Jan 12, 2006, at 2:44 PM, Edwin Groothuis wrote:

> Maintainer of mail/postfix,
>
> Please note that PR ports/91721 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/91721
>
> -- 
> Edwin Groothuis
> edwin@FreeBSD.org
Comment 3 Marcus Alves Grando freebsd_committer 2006-01-12 19:57:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mnag

I'll take it.
Comment 4 Marcus Alves Grando freebsd_committer 2006-01-12 20:39:11 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!