The Samba-Bugzilla – Attachment 4021 Details for
Bug 6225
[CTDB] Various enhancements to ctdb.init
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added debian-like LSB functions
0007-Added-debian-like-LSB-functions.patch (text/plain), 1.46 KB, created by
Mathieu Parent
on 2009-03-26 17:10:41 UTC
(
hide
)
Description:
Added debian-like LSB functions
Filename:
MIME Type:
Creator:
Mathieu Parent
Created:
2009-03-26 17:10:41 UTC
Size:
1.46 KB
patch
obsolete
>From b8cc203a3b956e3e7c5a1522d2b227c947a4586c Mon Sep 17 00:00:00 2001 >From: Mathieu Parent <math.parent@gmail.com> >Date: Thu, 26 Mar 2009 22:01:40 +0100 >Subject: [PATCH 07/15] Added debian-like LSB functions > >--- > config/ctdb.init | 46 ++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 46 insertions(+), 0 deletions(-) > >diff --git a/config/ctdb.init b/config/ctdb.init >index ed6d990..2869f88 100755 >--- a/config/ctdb.init >+++ b/config/ctdb.init >@@ -28,6 +28,52 @@ DESC="Clustered TDB" > > test -x $DAEMON || exit 0 > >+#LSB >+if [ -f /lib/lsb/init-functions ] ; then >+ . /lib/lsb/init-functions >+fi >+if ! type 'log_daemon_msg' >/dev/null; then >+ log_daemon_msg () { >+ if [ -z "${1:-}" ]; then >+ return 1 >+ fi >+ >+ if [ -z "${2:-}" ]; then >+ echo -n "$1:" >+ return >+ fi >+ >+ echo -n "$1: $2" >+ } >+fi >+if ! type 'log_progress_msg' >/dev/null; then >+ log_progress_msg () { >+ if [ -z "${1:-}" ]; then >+ return 1 >+ fi >+ echo -n " $@" >+ } >+fi >+if ! type 'log_end_msg' >/dev/null; then >+ log_end_msg () { >+ # If no arguments were passed, return >+ if [ -z "${1:-}" ]; then >+ return 1 >+ fi >+ >+ retval=$1 >+ >+ if [ $1 -eq 0 ]; then >+ echo "." >+ elif [ $1 -eq 255 ]; then >+ /bin/echo -e " (warning)." >+ else >+ /bin/echo -e " failed!" >+ fi >+ return $retval >+ } >+fi >+ > # Source function library. > if [ -f /etc/init.d/functions ] ; then > . /etc/init.d/functions >-- >1.6.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6225
:
4015
|
4016
|
4017
|
4018
|
4019
|
4020
| 4021 |
4022
|
4023
|
4024
|
4025
|
4026
|
4027
|
4028
|
4029
|
4030
|
4441
|
5102