ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/courier-imap/files/courier-imap-pop3d-ssl.in
Revision: 16349
Committed: Sun Apr 20 18:32:36 2014 UTC (10 years ago) by laffer1
File size: 958 byte(s)
Log Message:
remove cvs2svn:cvs-rev prop

File Contents

# User Rev Content
1 laffer1 4974 #!/bin/sh
2     #
3     # An rc.subr-style startup script for Courier-IMAP's POP3 over SSL service.
4    
5     # PROVIDE: courier_imap_pop3d_ssl
6     # REQUIRE: LOGIN courier_authdaemond
7     # KEYWORD: shutdown
8    
9     # Define these courier_imap_pop3d_ssl_* variables in one of these files:
10     # /etc/rc.conf
11     # /etc/rc.conf.local
12     # /etc/rc.conf.d/courier_imap_pop3d_ssl
13     #
14     # DO NOT CHANGE THESE DEFAULT VALUES HERE
15    
16     courier_imap_pop3d_ssl_enable=${courier_imap_pop3d_ssl_enable-"NO"}
17    
18     . %%RC_SUBR%%
19    
20     name="courier_imap_pop3d_ssl"
21     rcvar=`set_rcvar`
22     command="%%PREFIX%%/libexec/courier-imap/pop3d-ssl.rc"
23     pidfile="/var/run/pop3d-ssl.pid"
24     procname="%%PREFIX%%/sbin/courierlogger"
25    
26     start_cmd="pop3d_ssl_cmd start"
27     stop_cmd="pop3d_ssl_cmd stop"
28     restart_cmd="pop3d_ssl_cmd stop && pop3d_ssl_cmd start"
29    
30     load_rc_config $name
31    
32     pop3d_ssl_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