ports/122422: Update port: mail/up-imapproxy fix rc.d script to actually set the path to the config file
Frank Wall
fw at moov.de
Thu Apr 3 16:40:02 UTC 2008
>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 at 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:
More information about the freebsd-ports-bugs
mailing list