git: 5d6b7ba55915 - main - mail/exim: daemon fails to create notifier socket on start if no correct exit (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Aug 2026 09:42:15 UTC
The branch main has been updated by fluffy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5d6b7ba559157e30942d5a06683662823d078d59
commit 5d6b7ba559157e30942d5a06683662823d078d59
Author: Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2026-08-10 09:38:19 +0000
Commit: Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2026-08-10 09:42:06 +0000
mail/exim: daemon fails to create notifier socket on start if no correct exit (+)
Since recent version (e.g. 4.98) exim successfully creates notifier socket file in FreeBSD.
But if file already exists during exim start it's just ignored with error message in log.
Without notifier socket exim cannot check if there is already running exim daemon
with e.g. such condition: ${if eq {$queue_size} {} }.
Add socket file removing before daemon start.
exim_notifier_socket variable is added for notifier_socket setting overriding in exim configuration.
PR: 281615
Notified by: vvd
---
mail/exim/Makefile | 2 +-
mail/exim/files/exim.in | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 74716f59ba0f..5ce6fe06bcd2 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -1,6 +1,6 @@
PORTNAME= exim
PORTVERSION?= ${EXIM_VERSION}
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= mail
MASTER_SITES= EXIM:exim
MASTER_SITE_SUBDIR= /exim4/:exim \
diff --git a/mail/exim/files/exim.in b/mail/exim/files/exim.in
index 355b93dc4bd5..d29863c3c555 100644
--- a/mail/exim/files/exim.in
+++ b/mail/exim/files/exim.in
@@ -45,6 +45,7 @@ start_precmd()
[Nn][Oo][Nn][Ee])
;;
esac
+ rm -f "$exim_notifier_socket"
}
stop_postcmd()
@@ -56,5 +57,6 @@ stop_postcmd()
load_rc_config $name
: ${exim_enable="NO"}
: ${exim_flags="-bd -q30m"}
+: ${exim_notifier_socket="/var/spool/exim/exim_daemon_notify"}
run_rc_command "$1"