mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
rc.d/dovecot allows for multiple concurrent dovecot setups, but in doing
so runs the dovecot binary against each provided configuration file to obtain configuration data. When the configuration file doesn't exist, it says: doveconf: Fatal: open(/im_not_here) failed: No such file or directory Mistyping the conf file locations when doing multiple instances deserves an error message. The real issue here is that in order to set up dovecot, you have to actually copy files over from ${EXAMPLESDIR}. The default configuration file intentionally does not exist in a clean installation. So everybody who installs the dovecot2 port and does not configure it will receive that message at every boot. Fix it with a patch from pi that makes sure the conf file exists before trying to do stuff with it. PORTREVISION bump. PR: 197275 Submitted by: pi
This commit is contained in:
parent
0121ac94f4
commit
5c3ad18a7a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378311
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= dovecot
|
||||
PORTVERSION= 2.2.15
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= mail ipv6
|
||||
MASTER_SITES= http://www.dovecot.org/releases/${PORTVERSION:R}/
|
||||
PKGNAMESUFFIX= 2
|
||||
|
@ -52,7 +52,9 @@ restart_cmd()
|
||||
for config in ${dovecot_config}; do
|
||||
required_files="${config}"
|
||||
command_args="-c ${config}"
|
||||
base_dir=$(${command} ${command_args} -a | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')
|
||||
pidfile="${base_dir}/master.pid"
|
||||
run_rc_command "$1"
|
||||
if [ -f ${config} ]; then
|
||||
base_dir=$(${command} ${command_args} -a | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')
|
||||
pidfile="${base_dir}/master.pid"
|
||||
run_rc_command "$1"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user