freebsd-ports/mail/up-imapproxy/files/imapproxyd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

30 lines
666 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: imapproxyd
# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd inetd %%DOVECOT%%
# 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 "%%PREFIX%%/etc/imapproxyd.conf"
. /etc/rc.subr
name=imapproxyd
rcvar=imapproxyd_enable
load_rc_config $name
: ${imapproxyd_enable="NO"}
: ${imapproxyd_conf="%%PREFIX%%/etc/imapproxyd.conf"}
command=%%PREFIX%%/sbin/in.imapproxyd
required_files="${imapproxyd_conf}"
run_rc_command "$1"