[packages/exim] Rel 3; init start reports a failed daemon instead of exiting 0 with the lock taken
arekm
arekm at pld-linux.org
Mon Nov 2 13:22:07 CET 2026
commit 76aa626a8e971786f4fd6d43e67c6f73fc23c066
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Nov 2 13:19:53 2026 +0100
Rel 3; init start reports a failed daemon instead of exiting 0 with the lock taken
exim.init | 7 ++++---
exim.spec | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/exim.spec b/exim.spec
index 15a3373..b3c9350 100644
--- a/exim.spec
+++ b/exim.spec
@@ -23,7 +23,7 @@ Summary(pl.UTF-8): Agent Transferu Poczty Uniwersytetu w Cambridge
Summary(pt_BR.UTF-8): Servidor de correio eletrônico exim
Name: exim
Version: 4.100.1
-Release: 2
+Release: 3
Epoch: 2
License: GPL v2+
Group: Networking/Daemons/SMTP
diff --git a/exim.init b/exim.init
index 618019d..3efff95 100755
--- a/exim.init
+++ b/exim.init
@@ -87,15 +87,16 @@ start() {
$( is_yes "$ALLOW_TCP_CONNECTIONS" && echo -bd ) \
$( [ -n "$QUEUE" ] && echo -q$QUEUE ) \
-C "$EXIM_CONFIG"
+ RETVAL=$?
+ # the lock follows the main daemon: stop has to reach it even if an extra instance failed
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/exim
for CONFIG in $EXIM_EXTRA_CONFIGS; do
msg_starting "Exim ($CONFIG)"
daemon exim \
$( is_yes "$ALLOW_TCP_CONNECTIONS" && echo -bd ) \
$( [ -n "$QUEUE" ] && echo -q$QUEUE ) \
- -C $CONFIG
+ -C $CONFIG || RETVAL=$?
done
- RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/exim
}
stop() {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/exim.git/commitdiff/76aa626a8e971786f4fd6d43e67c6f73fc23c066
More information about the pld-cvs-commit
mailing list