#! /bin/sh
#
# Copyright 2015 S. Varshavchik.  See COPYING for
# distribution information.

prefix="/usr"
exec_prefix="/usr"
sysconfdir="/etc/courier"
localstatedir="/var/spool/courier"
bindir="/usr/bin"
sbindir="/usr/bin"
libexecdir="/usr/lib"

. ${sysconfdir}/imapd
. ${sysconfdir}/imapd-ssl

umask 022
${bindir}/makedat \
	-src=${IMAPACCESSFILE} \
	-file=${IMAPACCESSFILE}.dat \
	-tmp=${IMAPACCESSFILE}.tmp -cidr || exit 1

${sbindir}/couriertcpd -pid=$PIDFILE -restart
${sbindir}/couriertcpd -pid=$SSLPIDFILE -restart
