The RC script for mail/policyd2 is broken, because it interferes with other perl daemons. The problem is that procname="/usr/bin/perl" is specified. This will match most other perl daemons as well. So instead of stopping/restarting mail/policyd2, ALL your other perl daemons are going to be killed. Not exactly what I want if I try to stop mail/policyd2. IMHO this is a serious issue. The attached patch fixes this problem by replacing "procname" with "command_interpreter". Fix: apply the patch Patch attached with submission follows: How-To-Repeat: 1. choose any perl daemon, for example net-mgmt/snmptt, and install it 2. start this perl daemon: # /usr/local/etc/rc.d/snmptt onestart Starting snmptt. # /usr/local/etc/rc.d/snmptt onestatus snmptt is running as pid 54922. 3. now check policyd2 daemon status # /usr/local/etc/rc.d/policyd2 onestatus policyd2 is running as pid 54921 54922. 4. You will recognize that the PID 54922 for policyd2 actually is the PID for your other pearl daemon, snmptt. This is wrong.
Maintainer of mail/policyd2, Please note that PR ports/155779 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/155779 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Sure, please commit it, thank you. Chifeng -- *Regards.* **- Chifeng
State Changed From-To: feedback->open Maintainer approved.
Responsible Changed From-To: freebsd-ports-bugs->sahil Take.
sahil 2011-05-11 01:18:51 UTC FreeBSD ports repository Modified files: mail/policyd2 Makefile mail/policyd2/files policyd2.sh.in Log: Use command_interpreter instead of procname in rc script. Bump PORTREVISION because this change alters the default package. PR: ports/155779 Submitted by: Frank Wall <fw@moov.de> Approved by: Chifeng QU <chifeng@gmail.com> (maintainer) Revision Changes Path 1.11 +1 -0 ports/mail/policyd2/Makefile 1.3 +2 -2 ports/mail/policyd2/files/policyd2.sh.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!