Date: Thu, 15 Jan 2009 18:43:56 -0800 From: Craig Leres <leres@ee.lbl.gov> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/130598: [PATCH] mail/dovecot: rc.d errors when not enabled and without dovecot.conf Message-ID: <496FF46C.3080703@ee.lbl.gov> Resent-Message-ID: <200901160310.n0G3A1XG026609@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 130598 >Category: ports >Synopsis: [PATCH] mail/dovecot: rc.d errors when not enabled and >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 16 03:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Craig Leres >Release: FreeBSD 7.1-RELEASE i386 >Organization: Lawrence Berkeley National Laboratory >Environment: FreeBSD hot.ee.lbl.gov 7.1-RELEASE FreeBSD 7.1-RELEASE #2: Sun Jan 11 12:03:47 PST 2009 leres@hot.ee.lbl.gov:/usr/src/7.1-RELEASE/sys/i386/compile/LBLSMP i386 >Description: If the dovecot port is installed but not enabled in /etc/rc.conf and there is no /usr/local/etc/dovecot.conf configuration file, the rc.d script outputs some errors no startup. >How-To-Repeat: # grep dovecot /etc/rc.conf # ls /usr/local/etc/dovecot.conf ls: /usr/local/etc/dovecot.conf: No such file or directory # pkg_info | grep dovecot dovecot-1.1.7_1 Secure and compact IMAP and POP3 servers # /usr/local/etc/rc.d/dovecot start Error: Can't open configuration file /usr/local/etc/dovecot.conf: No such file or directory Fatal: Invalid configuration in /usr/local/etc/dovecot.conf Error: Can't open configuration file /usr/local/etc/dovecot.conf: No such file or directory Fatal: Invalid configuration in /usr/local/etc/dovecot.conf >Fix: The attached patch checks the enable variable before running the "multiple instances" startup block. --------------090804000004000903020405 Content-Type: text/plain; name="patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.txt" --- dovecot.sh.in.virgin 2009-01-15 18:14:05.000000000 -0800 +++ dovecot.sh.in 2009-01-15 18:30:15.000000000 -0800 @@ -47,6 +47,10 @@ run_rc_command start } +if ! checkyesno ${name}_enable; then + exit 0 +fi + # To start multiple instances of dovecot set dovecot_config to # a space seperated list of configuration files. for config in ${dovecot_config}; do --------------090804000004000903020405-- >Release-Note: >Audit-Trail: >Unformatted: This is a multi-part message in MIME format. --------------090804000004000903020405 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit without dovecot.conf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?496FF46C.3080703>