Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2008 16:33:06 GMT
From:      Frank Wall <fw@moov.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122422: Update port: mail/up-imapproxy fix rc.d script to actually set the path to the config file
Message-ID:  <200804031633.m33GX6Cl068550@www.freebsd.org>
Resent-Message-ID: <200804031640.m33Ge2mO015615@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122422
>Category:       ports
>Synopsis:       Update port: mail/up-imapproxy fix rc.d script to actually set the path to the config file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 03 16:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Wall
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD XXX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The mail/up-imapproxy rc.d script is missing an entry. This causes the port to not function, because it is not able to find its own config file. Even if imapproxyd_conf is set within rc.conf it will be ignored.

On startup it says:
in.imapproxyd: SetConfigOptions(): Unable to open config file '/etc/imapproxy.conf': No such file or directory -- Exiting

I did a quick fix to the rc.d script to make it work for me.
>How-To-Repeat:
1. install mail/up-imapproxy
2. copy example config file to /usr/local/etc/imapproxyd.conf
3. try to start: /usr/local/etc/rc.d/imapproxyd start
4. you will get an error log message saying:
in.imapproxyd: SetConfigOptions(): Unable to open config file '/etc/imapproxy.conf': No such file or directory -- Exiting
>Fix:
--- imapproxyd.orig     2008-04-03 18:07:24.000000000 +0200
+++ imapproxyd  2008-04-03 18:03:45.000000000 +0200
@@ -27,4 +27,6 @@
 command=/usr/local/sbin/in.imapproxyd
 required_files="${imapproxyd_conf}"
 
+imapproxyd_flags="-f ${imapproxyd_conf}"
+
 run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804031633.m33GX6Cl068550>