Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Apr 2008 14:47:04 -0400
From:      Jeff Royle <lists@qwirky.net>
To:        ports@FreeBSD.org
Cc:        mbr@FreeBSD.org
Subject:   mail/up-imapproxy 1.2.6 rc script issue
Message-ID:  <47FA6C28.4000000@qwirky.net>

next in thread | raw e-mail | index | archive | help
I just recently upgraded from 1.2.5 and noticed right away the rc script 
wouldn't pick the correct location for my configuration file.   I had to 
re-write the script to get things working correctly.

Here is a copy of my working rc script for the package:
--------------------------------------------
#!/bin/sh
#
# $FreeBSD: ports/mail/up-imapproxy/files/imapproxyd.sh.in,v 1.4 
2007/07/21 03:59:50 mbr Exp $
#
# PROVIDE: imapproxyd
# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd 
inetd
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable imapproxyd:
#
# imapproxyd_enable (bool):     Set "YES" to enable imapproxyd
#                               Default is "NO"
# imapproxyd_conf (file):       Set location of conf file.
#                               Default is "/usr/local/etc/imapproxyd.conf"

. /etc/rc.subr

name="imapproxyd"
rcvar=`set_rcvar`


: ${imapproxyd_enable="NO"}
: ${imapproxyd_conf="/usr/local/etc/imapproxyd.conf"}

command=/usr/local/sbin/in.imapproxyd
command_args="-f ${imapproxyd_conf}"
required_files="/usr/local/etc/imapproxyd.conf"

load_rc_config "$name"

run_rc_command "$1"
#EOF

-------------------
Cheers!

Jeff



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