Your message dated Tue, 23 Jul 2024 06:49:21 +0000
with message-id <[email protected]>
and subject line Bug#1059512: fixed in postfwd 1.35-9
has caused the Debian Bug report #1059512,
regarding stopping unsuccessful with sysvinit
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1059512: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059512
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: postfwd
Version: 1.35-5
with sysvinit, the init script only tries to stop postfwd with --pidfile
option:
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE && rm -rf
$PIDFILE
this causes start-stop-daemon to complain and not stop the daemon:
Stopping postfwd: start-stop-daemon: matching only on non-root pidfile
/var/run/postfwd.pid is insecure
in some circumstances this can also remove pidfile while postfwd is running
I'm attaching patch that adds "--name" argument to start-stop-daemon, which
makes the stopping work safely.
I have tested this on Debian 10 and Debian 12, with both postfwd1 and
postfwd2, patch fixes both cases.
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
99 percent of lawyers give the rest a bad name.
--- /etc/init.d/postfwd.orig 2021-01-06 21:49:07.000000000 +0100
+++ /etc/init.d/postfwd 2023-12-26 17:05:55.385432922 +0100
@@ -20,6 +20,7 @@
NAME=postfwd
DAEMON=/usr/sbin/${NAME}
PIDFILE=/var/run/$NAME.pid
+PROCNAME=/usr/sbin/postf
DESC=postfwd
. /lib/lsb/init-functions
@@ -79,7 +80,7 @@
;;
stop)
echo -n "Stopping $DESC: "
- start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE && rm -rf $PIDFILE
+ start-stop-daemon --stop --quiet --oknodo --name $PROCNAME --pidfile $PIDFILE --remove-pidfile
echo "$NAME."
;;
reload)
--- End Message ---
--- Begin Message ---
Source: postfwd
Source-Version: 1.35-9
Done: Jan Wagner <[email protected]>
We believe that the bug you reported is fixed in the latest version of
postfwd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jan Wagner <[email protected]> (supplier of updated postfwd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 23 Jul 2024 06:32:19 +0000
Source: postfwd
Architecture: source
Version: 1.35-9
Distribution: unstable
Urgency: medium
Maintainer: Jan Wagner <[email protected]>
Changed-By: Jan Wagner <[email protected]>
Closes: 1059512
Changes:
postfwd (1.35-9) unstable; urgency=medium
.
* [42f4738] d/postfwd.init: Adding "--name" to start-stop-daemon (Closes:
#1059512), Thanks Matus UHLAR
Checksums-Sha1:
461cad11cd7f03e318afef0604311d45d1829a93 1862 postfwd_1.35-9.dsc
77277ddca5fc7ce98ff265b12e9a94406e76f9dc 354609 postfwd_1.35.orig.tar.gz
ba04a0e54a385fa16fafa637946d177a8f0cf1ec 15784 postfwd_1.35-9.debian.tar.xz
0df10919a31883b8e2de38f5a054ab620e756842 5903 postfwd_1.35-9_amd64.buildinfo
Checksums-Sha256:
3d2fd8d719b9194aa653e5c624adc38b2aa403d7ba6061d829b70c7640af493c 1862
postfwd_1.35-9.dsc
42abf8fc1229e8a09fa0141b6e23e34c6e1b654a56f6e7556d04067eafc77c41 354609
postfwd_1.35.orig.tar.gz
a2d415602b8bad49878dc45a8e4589c6b37d6ecd5b7d2a12537f58a86ad835c0 15784
postfwd_1.35-9.debian.tar.xz
d1153272f6b7910a8bd1960825ab64d47fe84a278df32511adac911179ebe583 5903
postfwd_1.35-9_amd64.buildinfo
Files:
0f34a157f4c342a34096539438df4faa 1862 mail optional postfwd_1.35-9.dsc
8e01328416c735d55efec90dede8bff2 354609 mail optional postfwd_1.35.orig.tar.gz
8a1b45741e14077e247d69a32860ab9e 15784 mail optional
postfwd_1.35-9.debian.tar.xz
d373f516c49608aaefe45f1b6894925b 5903 mail optional
postfwd_1.35-9_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEXOdRCo+8DU5yq7qbDHBVe1oGUT4FAmafTw0ACgkQDHBVe1oG
UT6xGA/+MmXbuUhn+2viF7X/ygFUxhKFpz8sl+r8jMe3Lpfg57WyzydKtDk4urFu
vFEy0Zejvo7246mn/Js5N8F4UUgYTzQJasgsp1CjXto+DL+c52T6XTwmFUgKKVqT
+CrZwBjdSLo/CGIU1SqyMaJOAj5vodt/XRrvTdbGwwlIgNcoy26cQ/EhZ7ZB/1iC
nRJfg7YdVS7xWmX+8TkgnrCKRptbniSqDbpdYg6Zw+f7Z6y93YQ5vGvtv42zDUMr
9kaJDqxjeR62ERaMry5jQnoIvbItn++pt3R+s2q0RJQTgPj91aWJx1qK71juZ/Uv
GIZO81Os0ahoctPQZqfU5JTiZFCd446+sHCmzfGBeQJTiGwEBmbOB00BXxu4lE5c
69E7L+HH2kgGvVYy2Fxlc3NQkAAtG/dDBmfAiaZNsL63hNdSsMA5HdIaLiwmQmFJ
NaLbZUOvuLXjc5YLnPztAVaHpKvicPElfz4DVbU/DeeowVGpTJSjozawcUWzhxDJ
RfLZwU0NPEt1huaGw2eFKjIl4atItVa4CZCQqxJ0EB07aNrS3ghteQ8FKso8zPA3
VCBZvpuKj/Rv3+xZGgnCxArT3qsdwV9UQjDxEsWDDDOmbDpOlzmeT8ifvdSRYAxu
iWFCF9v980j3R6LR6vWTcVQ7A3eFruJS4Q6PTtAHZTBt2s9WQ1E=
=6E8W
-----END PGP SIGNATURE-----
pgpzV_Y_aKWpb.pgp
Description: PGP signature
--- End Message ---