Chris> Ian - It appears that the individual packages that are generating
Chris> these messages are misusing the functions in
Chris> /lib/lsb/init-functions; the newlines are being produced by those
Chris> scripts, not by the functions themselves (which, if used
Chris> properly, will give output indistinguishable from the "old"
Chris> logging style unless the init functions are overridden).

Chris> Incidentally, the functions Debian packages should be using are
Chris> not the ones mandated by the LSB; instead, they are designed to
Chris> allow either Ubuntu-style or policy-compliant logging (or some
Chris> other logging design) with the same calls, so changes to init
Chris> scripts are no longer necessary.

I looked at /etc/init.d/checkroot.sh and it contais this (among others):

        if [ "$doswap" = yes ]
        then
                [ "$VERBOSE" != no ] && log_success_msg "Activating swap..."
                swapon -a 2> /dev/null
                [ "$VERBOSE" != no ] && log_end_msg $?
        fi

Am I right that log_success_msg is the LSB function, which, according to
you above, should _not_ be used?

-- 
A true pessimist won't be discouraged by a little success.


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

Reply via email to