Ticket #512: imapd.sh

File imapd.sh, 386 bytes (added by bchesneau@…, 22 years ago)

imapd.sh

Line 
1#!/bin/sh
2NAME=imapd
3CAT=/bin/cat
4KILL=/bin/kill
5
6case "$1" in
7
8start)
9 
10  echo "starting courier-imap - imapd"
11  source __PREFIX/etc/courier/imapd
12  __PREFIX/libexec/imapd.rc start
13  ;;
14
15stop)
16  echo "stopping courier-imap - imapd"
17  source __PREFIX/etc/courier/imapd
18  __PREFIX/libexec/imapd.rc stop
19  ;;
20
21*)
22  echo "Usage: __PREFIX/etc/rc.d/$NAME {start|stop}"
23  exit 1
24  ;;
25
26esac