summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd24/files/imapd.sh
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2001-03-13 11:15:12 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2001-03-13 11:15:12 +0000
commita3b3c78cee30ca1bdebb803e4a331952fda285d8 (patch)
treeaa69017d8db98437933a1d0ceb925562ca3daa51 /mail/cyrus-imapd24/files/imapd.sh
parentPut a copy of distfile at my MASTER_SITE_LOCAL, because bento constantly (diff)
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>
Diffstat (limited to 'mail/cyrus-imapd24/files/imapd.sh')
-rw-r--r--mail/cyrus-imapd24/files/imapd.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/cyrus-imapd24/files/imapd.sh b/mail/cyrus-imapd24/files/imapd.sh
new file mode 100644
index 000000000000..e190969bf571
--- /dev/null
+++ b/mail/cyrus-imapd24/files/imapd.sh
@@ -0,0 +1,20 @@
+#!/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