blob: 1fda8d76f9802acae53f911571e25828c36ef2d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
# Start or stop cyrus-imapd
# PROVIDE: cyrus_imapd imap
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable Cyrus IMAP:
#
# cyrus_imapd_enable="YES"
. /etc/rc.subr
: ${cyrus_imapd_enable="NO"}
name="cyrus_imapd"
rcvar=cyrus_imapd_enable
pidfile="/var/run/cyrus-master.pid"
command="%%PREFIX%%/cyrus/libexec/master"
command_args="-d -p ${pidfile}"
required_files="%%PREFIX%%/etc/cyrus.conf %%PREFIX%%/etc/imapd.conf"
stop_postcmd="cyrus_imapd_poststop"
extra_commands="reload"
cyrus_imapd_poststop() {
/bin/rm -f ${pidfile}
}
load_rc_config $name
run_rc_command "$1"
|