From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 30 09:00:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1FAED7B6 for ; Sat, 30 Mar 2013 09:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E2DAB830 for ; Sat, 30 Mar 2013 09:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2U900Oc085121 for ; Sat, 30 Mar 2013 09:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2U900qe085120; Sat, 30 Mar 2013 09:00:00 GMT (envelope-from gnats) Resent-Date: Sat, 30 Mar 2013 09:00:00 GMT Resent-Message-Id: <201303300900.r2U900qe085120@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5FA906E4 for ; Sat, 30 Mar 2013 08:52:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 50D63805 for ; Sat, 30 Mar 2013 08:52:02 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2U8q2sS094441 for ; Sat, 30 Mar 2013 08:52:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2U8q1j6094440; Sat, 30 Mar 2013 08:52:01 GMT (envelope-from nobody) Message-Id: <201303300852.r2U8q1j6094440@red.freebsd.org> Date: Sat, 30 Mar 2013 08:52:01 GMT From: Nick To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/177497: Dovecot port startup script breaks onestart functionality X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2013 09:00:01 -0000 >Number: 177497 >Category: ports >Synopsis: Dovecot port startup script breaks onestart functionality >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Mar 30 09:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Nick >Release: 9.1 >Organization: >Environment: 9.1-STABLE FreeBSD 9.1-STABLE #0 r248873 >Description: mail/dovecot startup script /usr/local/etc/rc.d/dovecot breaks onestart/onestop startup rc functionality. No script actions will be performed, if dovecot_enable variable doesn't exist in /etc/rc.conf, which cuts out onestart/onestop functionality >How-To-Repeat: Set dovecot_enable to "NO" or remove the variable completely from /etc/rc.conf Invoke: /usr/local/etc/rc.d/dovecot Correct output should be (but it is not): Usage: /usr/local/etc/rc.d/dovecot [fast|force|one|quiet](start|stop|restart|rcvar|status|poll) >Fix: Edit the last section of /usr/local/etc/rc.d/dovecot and comment out checkyesno section (not a clean fix, but helps under my usage scenario): # To start multiple instances of dovecot set dovecot_config to # a space seperated list of configuration files. #if checkyesno ${name}_enable; then for config in ${dovecot_config}; do required_files="${config}" command_args="-c ${config}" base_dir=$(${command} ${command_args} -a | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }') pidfile="${base_dir}/master.pid" run_rc_command "$1" done #fi >Release-Note: >Audit-Trail: >Unformatted: