[Bug 228992] mail/cyrus-imapd30: add reload to init script
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 13 16:44:06 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228992
Bug ID: 228992
Summary: mail/cyrus-imapd30: add reload to init script
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ume at FreeBSD.org
Reporter: bugs at bergstroem.nu
Assignee: ume at FreeBSD.org
Flags: maintainer-feedback?(ume at FreeBSD.org)
Reloading is useful for rotating things like certificates (as you would, using
letsencrypt via security/acme.sh or similar). This can be achieved by invoking
SIGHUP: https://www.cyrusimap.org/imap/reference/admin/sop/reloading.html
Perhaps something like this?
$ diff -u imapd imapd_new
--- imapd 2018-05-18 20:58:41.093717000 +0200
+++ imapd_new 2018-06-13 18:42:32.042285000 +0200
@@ -27,6 +27,8 @@
pidfile="/var/run/cyrus-master.pid"
required_files="/usr/local/etc/cyrus.conf /usr/local/etc/imapd.conf"
stop_postcmd="cyrus_imapd_poststop"
+sig_reload="HUP"
+extra_commands="reload"
cyrus_imapd_poststop() {
/bin/rm -f ${pidfile}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list