openbsd-ports/mail/cyrus-imapd/pkg/cyrus_imapd.rc
2011-07-22 05:58:40 +00:00

21 lines
444 B
Bash
Executable File

#!/bin/sh
#
# $OpenBSD: cyrus_imapd.rc,v 1.8 2011/07/22 05:58:40 ajacoutot Exp $
daemon="${TRUEPREFIX}/libexec/cyrus-imapd/master"
daemon_flags="-d"
. /etc/rc.d/rc.subr
rc_pre() {
rm -f /var/run/cyrus-master.pid
}
# chdir needed when using the BerkeleyDB backend to prevent:
# DBERROR db4: no absolute path for the current directory: No such file or directory
rc_start() {
${rcexec} "cd /var/imap; ${daemon} ${daemon_flags}"
}
rc_cmd $1