ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/courier-imap/files/courier-imap-imapd.in
Revision: 4974
Committed: Sun May 11 15:51:39 2008 UTC (16 years ago) by laffer1
File size: 897 byte(s)
Log Message:
Update to 4.3.1.  Switch to subfiles for the shell scripts.

File Contents

# Content
1 #!/bin/sh
2 #
3 # An rc.subr-style startup script for Courier-IMAP's IMAP service.
4
5 # PROVIDE: courier_imap_imapd
6 # REQUIRE: LOGIN courier_authdaemond
7 # KEYWORD: shutdown
8
9 # Define these courier_imap_imapd_* variables in one of these files:
10 # /etc/rc.conf
11 # /etc/rc.conf.local
12 # /etc/rc.conf.d/courier_imap_imapd
13 #
14 # DO NOT CHANGE THESE DEFAULT VALUES HERE
15
16 courier_imap_imapd_enable=${courier_imap_imapd_enable-"NO"}
17
18 . %%RC_SUBR%%
19
20 name="courier_imap_imapd"
21 rcvar=`set_rcvar`
22 command="%%PREFIX%%/libexec/courier-imap/imapd.rc"
23 pidfile="/var/run/imapd.pid"
24 procname="%%PREFIX%%/sbin/courierlogger"
25
26 start_cmd="imapd_cmd start"
27 stop_cmd="imapd_cmd stop"
28 restart_cmd="imapd_cmd stop && imapd_cmd start"
29
30 load_rc_config $name
31
32 imapd_cmd () {
33 case $1 in
34 start)
35 echo "Starting ${name}."
36 ${command} start
37 ;;
38 stop)
39 echo "Stopping ${name}."
40 ${command} stop
41 ;;
42 esac
43 }
44
45 run_rc_command "$1"
46

Properties

Name Value
cvs2svn:cvs-rev 1.1