1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/mail/cyrus-imapd23/files/imapd.sh
Hajimu UMEMOTO a3b3c78cee Add cyrus-imapd 2.0.12, the cyrus mail server, supporting POP3 and
IMAP4 protocols.

PR:		ports/25597
Submitted by:	Christopher K Davis <ckd@ckdhr.com>
2001-03-13 11:15:12 +00:00

21 lines
336 B
Bash

#!/bin/sh
case "$1" in
start)
if [ -x /usr/local/cyrus/bin/master -a \
-f /usr/local/etc/cyrus.conf -a \
-f /usr/local/etc/imapd.conf ]; then
/usr/local/cyrus/bin/master &
echo -n ' imapd'
fi
;;
stop)
killall -u cyrus master && echo -n ' imapd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0