diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2023-05-22 22:47:44 +0900 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2023-05-22 22:47:44 +0900 |
commit | bf9442f5fcc897521c2e8c18f7ea9e66f3c8d9a7 (patch) | |
tree | 330246ba527b833e2731a728ea7d0a24099cd68c /mail/cyrus-imapd38/files/imapd.in | |
parent | sysutils/py-ansible-lint: update to 6.16.2 (diff) |
mail/cyrus-imapd38: Add new port -- Cyrus IMAP 3.8
Relnotes: https://www.cyrusimap.org/3.8/imap/download/release-notes/3.8/x/3.8.0.html
Diffstat (limited to 'mail/cyrus-imapd38/files/imapd.in')
-rw-r--r-- | mail/cyrus-imapd38/files/imapd.in | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/cyrus-imapd38/files/imapd.in b/mail/cyrus-imapd38/files/imapd.in new file mode 100644 index 000000000000..89e6c2ce8ea1 --- /dev/null +++ b/mail/cyrus-imapd38/files/imapd.in @@ -0,0 +1,36 @@ +#!/bin/sh + +# Start or stop cyrus-imapd + +# PROVIDE: cyrus_imapd imap +# REQUIRE: DAEMON +# BEFORE: mail +# KEYWORD: shutdown + +# Define these cyrus_imapd_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/cyrus_imapd +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +[ -z "$cyrus_imapd_enable" ] && cyrus_imapd_enable="NO" # Enable imapd +#cyrus_imapd_program="%%PREFIX%%/cyrus/libexec/master" # Location of imapd +[ -z "$cyrus_imapd_flags" ] && cyrus_imapd_flags="-d" # Flags to imapd program + +. /etc/rc.subr + +name="cyrus_imapd" +rcvar=cyrus_imapd_enable +command="%%PREFIX%%/cyrus/libexec/master" +pidfile="/var/run/cyrus-master.pid" +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" |