[Pkg-sysvinit-devel] Bug#808999: init.d/bootlogd: Last two lines are missing from the log
Bjarni Ingi Gislason
bjarniig at rhi.hi.is
Fri Dec 25 23:06:50 UTC 2015
Package: bootlogd
Version: 2.88dsf-59
Severity: minor
Tags: patch
Dear Maintainer,
* What led up to the situation?
Checking the file /var/log/boot
* What exactly did you do (or not do) that was effective (or
ineffective)?
The usual last line "[....] Stopping boot logger: bootlogd" was not
in the log
Patch (also in the attachment, if it gets mangled):
--- bootlogd 2015-12-25 18:58:23.000000000 +0000
+++ bootlogd.new 2015-12-25 22:24:32.000000000 +0000
@@ -54,10 +54,15 @@ case "$ACTION" in
stop)
PATH=/bin:/sbin:/usr/bin:/usr/sbin
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+# Finish the line before the daemon stops and give it time to write to its log
+ printf '\n'
+ sleep 1
start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
ES=$?
sleep 1
[ "$VERBOSE" != no ] && log_end_msg $ES
+# Make the last message visible on the console
+ sleep 2
if [ -r "$TMPLOG" ]
then
cat "$TMPLOG" >> /var/log/boot
@@ -75,6 +80,8 @@ case "$ACTION" in
}
ES=$?
[ "$VERBOSE" = no ] || log_action_end_msg $ES
+# Make the message visible on the console
+ sleep 2
fi
;;
restart|force-reload)
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.7-ckt20-u1 (SMP w/2 CPU cores)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages bootlogd depends on:
ii libc6 2.19-18+deb8u1
ii lsb-base 4.1+Debian13+nmu1
bootlogd recommends no packages.
bootlogd suggests no packages.
-- Configuration Files:
/etc/init.d/bootlogd changed [not included]
/etc/init.d/stop-bootlogd changed [not included]
-- no debconf information
--
Bjarni I. Gislason
-------------- next part --------------
--- bootlogd.jessie.dpkg 2015-12-25 18:58:23.000000000 +0000
+++ bootlogd 2015-12-25 22:24:32.000000000 +0000
@@ -54,10 +54,15 @@ case "$ACTION" in
stop)
PATH=/bin:/sbin:/usr/bin:/usr/sbin
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+# Finish the line before the daemon stops and give it time to write to its log
+ printf '\n'
+ sleep 1
start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
ES=$?
sleep 1
[ "$VERBOSE" != no ] && log_end_msg $ES
+# Make the last message visible on the console
+ sleep 2
if [ -r "$TMPLOG" ]
then
cat "$TMPLOG" >> /var/log/boot
@@ -75,6 +80,8 @@ case "$ACTION" in
}
ES=$?
[ "$VERBOSE" = no ] || log_action_end_msg $ES
+# Make the message visible on the console
+ sleep 2
fi
;;
restart|force-reload)
More information about the Pkg-sysvinit-devel
mailing list