#! /bin/sh
#
case "$1" in
    start)
	echo "Starting Courier-IMAP+POP3 ..."
        /usr/libexec/courier-imap/imapd.rc start
        /usr/libexec/courier-imap/pop3d.rc start
	/usr/libexec/courier-imap/imapd-ssl.rc start
	/usr/libexec/courier-imap/pop3d-ssl.rc start
	;;
    stop)
	echo "Stopping Courier-IMAP+POP3 ..."
        /usr/libexec/courier-imap/imapd.rc stop
        /usr/libexec/courier-imap/pop3d.rc stop
	/usr/libexec/courier-imap/imapd-ssl.rc stop
	/usr/libexec/courier-imap/pop3d-ssl.rc stop
	;;
    *)
	echo "usage: $0 {start|stop}"
	exit 1
esac