Your message dated Tue, 09 Sep 2025 15:09:55 +0000
with message-id <[email protected]>
and subject line Bug#922423: fixed in sysvinit 3.15-1
has caused the Debian Bug report #922423,
regarding initscripts: cleanup + suggestions
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.)
--
922423: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922423
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: initscripts
Version: 2.88dsf-7
Severity: minor
Tags: patch
Please have a look at the attached diff.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages initscripts depends on:
ii coreutils 8.5-1 GNU core utilities
ii debianutils 3.2.3 Miscellaneous utilities specific t
ii libc6 2.10.2-9 Embedded GNU C Library: Shared lib
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
ii mount 2.17.2-2 Tools for mounting and manipulatin
ii sysv-rc 2.88dsf-7 System-V-like runlevel change mech
ii sysvinit-utils 2.88dsf-7 System-V-like utilities
Versions of packages initscripts recommends:
ii e2fsprogs 1.41.12-1 ext2/ext3/ext4 file system utiliti
ii psmisc 22.11-1 utilities that use the proc file s
initscripts suggests no packages.
-- Configuration Files:
/etc/default/bootlogd changed [not included]
/etc/default/tmpfs changed [not included]
/etc/init.d/bootlogd changed [not included]
/etc/init.d/mountdevsubfs.sh changed [not included]
-- no debconf information
Cheers,
--
Cristian
--- debian/src/initscripts/etc/init.d/sendsigs.orig 2010-05-30 20:07:15.000000000 +0200
+++ debian/src/initscripts/etc/init.d/sendsigs 2010-05-30 20:14:36.000000000 +0200
@@ -1,24 +1,26 @@
-#! /bin/sh
+#!/bin/sh
### BEGIN INIT INFO
# Provides: sendsigs
-# Required-Start:
+# Required-Start:
# Required-Stop: umountnfs
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Kill all remaining processes.
-# Description:
+# Description:
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/lsb/init-functions
+INITCTL=/sbin/initctl
+
# Make it possible to see who the misbehaving processes are
report_unkillable() {
- if [ -x /usr/bin/pstree ] ; then
+ if [ -x /usr/bin/pstree ]; then
echo "Currently running processes (pstree):"
pstree
- elif [ -x /bin/ps ] ; then
+ elif [ -x /bin/ps ]; then
echo "Currently running processes (ps):"
ps -ef
fi
@@ -27,36 +29,44 @@
do_stop () {
OMITPIDS=
- # The /var/run/sendsigs.omit file is used to be compatible
+ # The /var/run/sendsigs.omit file used to be compatible
# with Ubuntu.
for omitfile in /var/run/sendsigs.omit /lib/init/rw/sendsigs.omit; do
- if [ -e $omitfile ]; then
+ # $omitfile may be a file, but is it readable?
+ if [ -r $omitfile ]; then
+ # FIXME: $omitfile may be readable, but contents may
+ # differ from what is expected.
for pid in $(cat $omitfile); do
OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
done
fi
done
+ # at this point OMITPIDS may still be empty
# Load sendsigs.omit.d/packagename files too, to make it
# possible for scripts that need to modify the list of pids at
# run time without race conditions.
- if [ -d /lib/init/rw/sendsigs.omit.d/ ]; then
+ if [ -d /lib/init/rw/sendsigs.omit.d ]; then
for pidfile in /lib/init/rw/sendsigs.omit.d/*; do
- [ -f "$pidfile" ] || continue
+ [ -r "$pidfile" ] || continue
+ # FIXME: $pidfile may be readable, but contents may
+ # differ from what is expected.
for pid in $(cat $pidfile); do
OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
done
done
fi
+ # at this point OMITPIDS may still be empty
# Upstart jobs have their own "stop on" clauses that sends
# SIGTERM/SIGKILL just like this, so if they're still running,
# they're supposed to be
- if [ -x /sbin/initctl ]; then
- for pid in $(initctl list | sed -n -e "/process [0-9]/s/.*process //p"); do
+ if [ -x $INITCTL ]; then
+ for pid in $($INITCTL list | sed -ne "/process [0-9]/s/.*process //p"); do
OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
done
fi
+ # at this point OMITPIDS may still be empty
# Flush the kernel I/O buffer before we start to kill
# processes, to make sure the IO of already stopped services to
@@ -67,60 +77,67 @@
# Kill all processes.
log_action_begin_msg "Asking all remaining processes to terminate"
+ # FIXME: at this point OMITPIDS may be empty
killall5 -15 $OMITPIDS # SIGTERM
log_action_end_msg 0
- alldead=""
- for seq in 1 2 3 4 5 6 7 8 9 10; do
+ alldead=
+ seq=0
+ max_seq=10
+ while [ $seq -lt $max_seq ]; do
# use SIGCONT/signal 18 to check if there are
# processes left. No need to check the exit code
- # value, because either killall5 work and it make
- # sense to wait for processes to die, or it fail and
+ # value, because either killall5 works and it makes
+ # sense to wait for processes to die, or it fails and
# there is nothing to wait for.
# did an upstart job start since we last polled initctl? check
# again on each loop and add any new jobs (e.g., plymouth) to
# the list. If we did miss one starting up, this beats waiting
- # 10 seconds before shutting down.
- if [ -x /sbin/initctl ]; then
- for pid in $(initctl list | sed -n -e "/process [0-9]/s/.*process //p"); do
- OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
- done
+ # $max_seq seconds before shutting down.
+ if [ -x $INITCTL ]; then
+ for pid in $($INITCTL list | sed -ne "/process [0-9]/s/.*process //p"); do
+ OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
+ done
fi
- if killall5 -18 $OMITPIDS ; then
- :
+
+ # FIXME: at this point OMITPIDS may be empty
+ if killall5 -18 $OMITPIDS; then
+ :
else
- alldead=1
- break
+ alldead=1
+ break
fi
sleep 1
+ seq=$(($seq + 1))
done
- if [ -z "$alldead" ] ; then
- report_unkillable
- log_action_begin_msg "Killing all remaining processes"
- killall5 -9 $OMITPIDS # SIGKILL
- log_action_end_msg 1
+ if [ "$alldead" ]; then
+ log_action_begin_msg "All processes ended within $seq seconds."
+ log_action_end_msg 0
else
- log_action_begin_msg "All processes ended within $seq seconds."
- log_action_end_msg 0
+ report_unkillable
+ log_action_begin_msg "Killing all remaining processes"
+ # FIXME: at this point OMITPIDS may be empty
+ killall5 -9 $OMITPIDS # SIGKILL
+ log_action_end_msg 1
fi
}
-case "$1" in
- start)
- # No-op
- ;;
- restart|reload|force-reload)
- echo "Error: argument '$1' not supported" >&2
- exit 3
- ;;
- stop)
- do_stop
- ;;
- *)
- echo "Usage: $0 start|stop" >&2
- exit 3
- ;;
+case $1 in
+ start)
+ # No-op
+ ;;
+ restart|reload|force-reload)
+ echo "Error: argument '$1' not supported" >&2
+ exit 3
+ ;;
+ stop)
+ do_stop
+ ;;
+ *)
+ echo "Usage: $0 start|stop" >&2
+ exit 3
+ ;;
esac
:
--- 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-----
pgplOzuhp8t4W.pgp
Description: PGP signature
--- End Message ---