Package: util-linux
Version: 2.12r-4
Severity: minor
Tags: patch

With dozens of daemons starting, only hwclock spits lines that wrap on
a standard 80 column display. And then a lone dot on the next
line. One such message during boot, and one during shutdown. Looks
like this:

A log will be saved in /var/log/fsck/checkroot if that location is writable.
Setting the system clock:System Clock set. Local time: Wed Jan 18 20:09:18 UTC 
2006.
.
Cleaning up ifupdown...done.

And similar >80 line during shutdown.

What I suggest is to remove leading strings "Setting|Saving... clock"
because that information is obvious from the messages that
follow. That would beautify the output. The patches for that are
below, but are made against the two init scripts that are shipped,
maybe you will need to modify them slightly to apply them against the
source package. With that changes applied output looks like:

A log will be saved in /var/log/fsck/checkroot if that
System Clock set. Local time: Wed Jan 18 15:56:13 UTC 
Cleaning up ifupdown...done.


--- hwclock.sh-virgin   2006-01-18 16:49:52.000000000 +0100
+++ /etc/init.d/hwclock.sh      2006-01-18 16:51:40.000000000 +0100
@@ -18,8 +18,6 @@
 
 FIRST=no       # debian/rules sets this to 'yes' when creating hwclockfirst.sh
 
-[ "X$FIRST" = "Xyes" ] && AGAIN="" || AGAIN=" again"
-
 # Set this to any options you might need to give to hwclock, such
 # as machine hardware clock type for Alphas.
 HWCLOCKPARS=
@@ -87,8 +85,6 @@
            fi
 
            if [ "$HWCLOCKACCESS" != no ]; then
-               log_daemon_msg "Setting the system clock$AGAIN"
-
                # Copies Hardware Clock time to System Clock using the correct
                # timezone for hardware clocks in local time, and sets kernel
                # timezone. DO NOT REMOVE.
@@ -116,7 +112,6 @@
            else
                verbose_log_action_msg "Not setting System Clock"
            fi
-           log_end_msg 0
            ;;
        stop|restart|reload|force-reload)
            if [ "X$FIRST" = "Xyes" ]; then
@@ -130,7 +125,6 @@
            #          clock will not be carried across reboots.
            #
            if [ "$HWCLOCKACCESS" != no ]; then
-               log_daemon_msg "Saving the system clock"
                if [ "$GMT" = "-u" ]; then
                    GMT="--utc"
                fi
@@ -139,7 +133,6 @@
            else
                verbose_log_action_msg "Not saving System Clock"
            fi
-           log_end_msg 0
            ;;
        show)
            if [ "$HWCLOCKACCESS" != no ]; then

--- hwclockfirst.sh-virgin      2006-01-18 16:49:52.000000000 +0100
+++ /etc/init.d/hwclockfirst.sh 2006-01-18 16:52:31.000000000 +0100
@@ -18,8 +18,6 @@
 
 FIRST=yes      # debian/rules sets this to 'yes' when creating hwclockfirst.sh
 
-[ "X$FIRST" = "Xyes" ] && AGAIN="" || AGAIN=" again"
-
 # Set this to any options you might need to give to hwclock, such
 # as machine hardware clock type for Alphas.
 HWCLOCKPARS=
@@ -87,8 +85,6 @@
            fi
 
            if [ "$HWCLOCKACCESS" != no ]; then
-               log_daemon_msg "Setting the system clock$AGAIN"
-
                # Copies Hardware Clock time to System Clock using the correct
                # timezone for hardware clocks in local time, and sets kernel
                # timezone. DO NOT REMOVE.
@@ -116,7 +112,6 @@
            else
                verbose_log_action_msg "Not setting System Clock"
            fi
-           log_end_msg 0
            ;;
        stop|restart|reload|force-reload)
            if [ "X$FIRST" = "Xyes" ]; then
@@ -130,7 +125,6 @@
            #          clock will not be carried across reboots.
            #
            if [ "$HWCLOCKACCESS" != no ]; then
-               log_daemon_msg "Saving the system clock"
                if [ "$GMT" = "-u" ]; then
                    GMT="--utc"
                fi
@@ -139,7 +133,6 @@
            else
                verbose_log_action_msg "Not saving System Clock"
            fi
-           log_end_msg 0
            ;;
        show)
            if [ "$HWCLOCKACCESS" != no ]; then

-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=C, LC_CTYPE=hr_HR (charmap=ISO-8859-2)

Versions of packages util-linux depends on:
ii  libc6         2.3.5-12                   GNU C Library: Shared libraries an
ii  libncurses5   5.5-1                      Shared libraries for terminal hand
ii  libslang2     2.0.5-1                    The S-Lang programming library - r
ii  libuuid1      1.38+1.39-WIP-2005.12.31-1 universally unique id library
ii  lsb-base      3.0-14                     Linux Standard Base 3.0 init scrip
ii  zlib1g        1:1.2.3-9                  compression library - runtime

util-linux recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to