From: Philipp Reisner <philipp.reisner@linbit.com>
To: drbd-user@lists.linbit.com
Cc: drbd-announce@lists.linbit.com
Subject: [DRBD-announce] issue with the init script on SLES10
Date: Wed, 25 Mar 2009 17:18:41 +0100 [thread overview]
Message-ID: <200903251718.41585.philipp.reisner@linbit.com> (raw)
In-Reply-To: <200903241837.00249.philipp.reisner@linbit.com>
To our SLES10 users,
With the 8.0.15 release the init script was changed to be
more LSB compliant. Unfortunately it turned out that on SLES10
it prints awkward error messages instead of nice log messages,
although it does what it should do.
Here is the diff to have a nicely working init script for SLES10
Online:
http://git.drbd.org/?p=drbd-8.0.git;a=blobdiff;f=scripts/drbd;h=f2b0506e385532e9169dd69d71be15bffd50f3fe;hp=2e2ec293b9fdbde2d47cf46420e7272b52201260;hb=16bc8d063424a9d47bc3c679b770a8cad8530909;hpb=7a69c1d5fce483730b7483b03c94c866a0283360
I will release 8.0.16 with only that change applied soon.
The complete patch:
diff --git a/scripts/drbd b/scripts/drbd
index 2e2ec29..f2b0506 100755
--- a/scripts/drbd
+++ b/scripts/drbd
@@ -31,7 +31,9 @@ test -f $DRBDADM || exit 5
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
-else
+fi
+
+if ! type log_daemon_msg &>/dev/null ; then
function log_daemon_msg
{
if [ -z "${2:-}" ]; then
@@ -40,7 +42,9 @@ else
fi
echo -n "$1: $2"
}
+fi
+if ! type log_end_msg &>/dev/null ; then
function log_end_msg
{
echo "."
-Phil
--
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
parent reply other threads:[~2009-03-25 16:18 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <200903241837.00249.philipp.reisner@linbit.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200903251718.41585.philipp.reisner@linbit.com \
--to=philipp.reisner@linbit.com \
--cc=drbd-announce@lists.linbit.com \
--cc=drbd-user@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.