Created attachment 148702 [details] Patch to fix it In the current version (2.2.15) of mail/dovecot2 the startup script /usr/local/etc/rc.d/dovecot only runs the rcvar command when dovecot_enable="YES" is set to the appropriate configuration file. This breaks for instance the puppet provider which issues rcvar to gather information how to enable dovecot in the first place and leaves me with a chicken-egg problem. The exact same bug was issued (#177497) for mail/dovecot and fixed after 1 and a half year, let's not hope it will takes as long for this port. I've attached a similar patch how to fix this. This basically removes the checkyesno check, but this is handled with the run_rc_command anyway.
Auto-assigned to maintainer adamw@FreeBSD.org
A commit references this bug: Author: adamw Date: Mon Oct 27 15:45:20 UTC 2014 New revision: 371588 URL: https://svnweb.freebsd.org/changeset/ports/371588 Log: Remove the checkyesno dovecot_enable section, as it prevents onestart/onestop from working (as well as other things). I suspect this behaviour is present in other rc-files... a general cleanup on this might be in order. PR: 194629 Submitted by: Reinier Schoof Changes: head/mail/dovecot2/Makefile head/mail/dovecot2/files/dovecot.in
You are completely right on this, Reinier. Thank you!