Your message dated Tue, 09 Sep 2025 15:09:55 +0000
with message-id <[email protected]>
and subject line Bug#931867: fixed in sysvinit 3.15-1
has caused the Debian Bug report #931867,
regarding /lib/init/init-d-script is sourcing /etc/default/* too late
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.)
--
931867: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931867
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysvinit-utils
Version: 2.93-8
I started testing the upgrade from Debian Stretch to Buster, and I've
encountered a problem that affects the snmpd package's init.d script. It
looks like it has been changed to utilize /lib/init/init-d-script for
its core functionality. However, by doing so, the SNMPDOPTS value is
ignored from the init config file at /etc/default/snmpd. This is because
of the following lines in /etc/init.d/snmpd:
==============================
DEFAULT_SNMPDOPTS="-Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I
-smux,mteTrigger,mteTriggerConf"
[ -z "$SNMPDOPTS" ] && SNMPDOPTS=$DEFAULT_SNMPDOPTS
==============================
Because the /lib/init/init-d-script script sources /etc/init.d/snmpd
BEFORE it sources /etc/default/snmpd, none of the values in
/etc/default/snmpd are visible to /etc/init.d/snmpd. This results in
SNMPDOPTS always being set to the default arguments.
One could view this as a bug in either snmpd or sysvinit-utils,
depending on your viewpoint. However, it seems more appropriate for a
fix to be applied to /lib/init/init-d-script within sysvinit-utils, as
other scripts may try (or even be trying already) to use this method
within the init.d script to set defaults. The /etc/init.d/snmpd script
could manually force an inclusion of /etc/defaults/snmpd, but it seems a
little redundant when /lib/init/init-d-script is supposed to do that work.
The line in question in /lib/init/init-d-script is below:
==============================
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
==============================
Moving it above the following block would ensure it's sourced first:
==============================
SCRIPTNAME="$__init_d_script_name"
scriptbasename="$(basename "$__init_d_script_name")"
if [ "$scriptbasename" != "init-d-script" ] ; then
. "$__init_d_script_name"
else
exit 0
fi
==============================
I checked the latest experimental version (2.95) and it doesn't have any
changes like this (although it does fix the snmpd package install bug as
referenced in #926390). Without knowing all the ins and outs of how
/lib/init/init-d-script is used throughout Debian, I can't say if this
change would be considered safe or not. Perhaps there are instances
where the /etc/default/* config file tries to do more than just set some
shell variables and it would cause some bizarre side effects.
Thanks.
--
Justin Pasher
--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 3.15-1
Done: Mark Hindley <[email protected]>
We believe that the bug you reported is fixed in the latest version of
sysvinit, 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.
Mark Hindley <[email protected]> (supplier of updated sysvinit 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, 09 Sep 2025 13:40:37 +0100
Source: sysvinit
Architecture: source
Version: 3.15-1
Distribution: experimental
Urgency: medium
Maintainer: Debian sysvinit maintainers
<[email protected]>
Changed-By: Mark Hindley <[email protected]>
Closes: 922423 931867
Changes:
sysvinit (3.15-1) experimental; urgency=medium
.
* New upstream version 3.15
* d/src/README.style: add recommended initscript style.
* d/src: comply with recommended style. (Closes: #922423)
* init-d-script.5: document that /etc/default/$NAME environment is not
available in script top-level. (Closes: #931867)
* d/control, d/watch: update following upstream migration to codeberg.
Checksums-Sha1:
6355331a63265fe1d681741a6d6da85d0fc1949e 2382 sysvinit_3.15-1.dsc
4e425ca865f0690781bd632643ed8c5d10b77cd9 516469 sysvinit_3.15.orig.tar.gz
c987b6e66e3ef41c9198e08d0de080b1ec3eaa85 122128 sysvinit_3.15-1.debian.tar.xz
e7c86f2b59ab75c462647597c45dc098c262b5a8 8075 sysvinit_3.15-1_amd64.buildinfo
Checksums-Sha256:
ebc813c14c879d65a920513d7939ea04891f336cf58423678ebb378d28066e0f 2382
sysvinit_3.15-1.dsc
0979dd582056130a45bf70738260fb7f3da5cca989509b1e37ad5ad1d4cbe0bf 516469
sysvinit_3.15.orig.tar.gz
ab995211e35977ce96d9baff1975f6ea2fbffed2d9836381b25e997dabfc1d58 122128
sysvinit_3.15-1.debian.tar.xz
82e8cc0e536fb17402d462cce9b918ace1ebb023c96aa99f9cd5d97d1360904c 8075
sysvinit_3.15-1_amd64.buildinfo
Files:
406f3309ec9f7d8988faa38d3e50d946 2382 admin optional sysvinit_3.15-1.dsc
ef53645f5e810c65211c3398ab61a8ee 516469 admin optional
sysvinit_3.15.orig.tar.gz
a5383c31b2dd596d2f05d647671d0ff6 122128 admin optional
sysvinit_3.15-1.debian.tar.xz
dc3e25664013c35777f78dca0ecc9aae 8075 admin optional
sysvinit_3.15-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEUGwVpCsK9aCoVCPu0opFvzKH1kkFAmjANRYACgkQ0opFvzKH
1klU2w//RNirHxGsjN1pYlFLieB0T0PMLUhxU1CSAVyH9eyEmlibeQuhuJMnFKNb
n7CWYxTqJS30QgVaPs3MyeUsLPjFfO6OclcU5+KmWtrW4WdPGn366DQqSFsA/azx
Anxbv+DELCS9Sqqv2Q+livpK3spUkofOiBF7bYr4Yq6/4rKTRB3UIOTDT/cKAcGI
0WvxSRasUmmp3IL8icFbEHO5zg5YevX/J7263fjuosjX8ykXU0Ke/7/dE9JieRP+
OtFEfrxauFY78v2hn15+qtsVXZ8vBNAzzrrtpsOQayNv8Gtg57gC5wdGZ+PBO1N3
yMF9Y+jBA4PnoiHjjio9DY7dcXdt/aKRMxlsHxCYDtyUaY2Yg4AeNwH9nREHEyeg
mhcuLRmDaiTNeN/QAxp5XhvJUAVwy42d60fjj4sBZvXABO/5Jn/AdWlxvlQnj7zz
fhryRbTXX+34OOWwHolRgLenTQEoLNnplDGAGaZHqOwnmydqBeO7Qz7P6yEz2rQ4
uJ2GB5A5QPu0YT828Xh3+CZvt4H3oHdrp6ZqaoXqAbwTNhJqt/TeZUjyDObRlXAC
QGZSezbsbip8fSg7gVShFiH3m1c48Kf7H3hu6nMfg9e43gz1UlZ9DvA4xcUG6Wxf
1+q8WG26yGD7qfcup2oG3kTfvAilqm0Mf608PAigIs8DaMZvVGI=
=S5iV
-----END PGP SIGNATURE-----
pgpowUHolSTWc.pgp
Description: PGP signature
--- End Message ---