The Samba-Bugzilla – Attachment 4018 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]
Renamed functions 'start' by 'start_server' for better readability
0004-Renamed-functions-start-stop-and-restart-by.patch (text/plain), 1.54 KB, created by
Mathieu Parent
on 2009-03-26 17:09:39 UTC
(
hide
)
Description:
Renamed functions 'start' by 'start_server' for better readability
Filename:
MIME Type:
Creator:
Mathieu Parent
Created:
2009-03-26 17:09:39 UTC
Size:
1.54 KB
patch
obsolete
>From 077d30d98baf6a69a3c82ff03ddf1b778955fadf Mon Sep 17 00:00:00 2001 >From: Mathieu Parent <math.parent@gmail.com> >Date: Thu, 26 Mar 2009 19:16:54 +0100 >Subject: [PATCH 04/15] Renamed functions 'start', 'stop' and 'restart' by 'start_server', > 'stop_server' and 'restart_server' for better readability > >--- > config/ctdb.init | 20 ++++++++++---------- > 1 files changed, 10 insertions(+), 10 deletions(-) > >diff --git a/config/ctdb.init b/config/ctdb.init >index 31e4d50..716b8cb 100755 >--- a/config/ctdb.init >+++ b/config/ctdb.init >@@ -93,7 +93,7 @@ set_retval() { > return $1 > } > >-start() { >+start_server() { > killall -q ctdbd > echo -n $"Starting ctdbd service: " > >@@ -151,7 +151,7 @@ start() { > return $RETVAL > } > >-stop() { >+stop_server() { > echo -n $"Shutting down ctdbd service: " > ctdb ping > /dev/null 2>&1 || { > echo -n " Warning: ctdbd not running ! " >@@ -198,9 +198,9 @@ stop() { > return $RETVAL > } > >-restart() { >- stop >- start >+restart_server() { >+ stop_server >+ start_server > } > > status() { >@@ -226,23 +226,23 @@ status() { > > case "$1" in > start) >- start >+ start_server > ;; > stop) >- stop >+ stop_server > ;; > restart|reload) >- restart >+ restart_server > ;; > status) > status > ;; > condrestart) >- ctdb status > /dev/null && restart || : >+ ctdb status > /dev/null && restart_server || : > ;; > cron) > # used from cron to auto-restart ctdb >- ctdb status > /dev/null || restart >+ ctdb status > /dev/null || restart_server > ;; > *) > echo $"Usage: $0 {start|stop|restart|status|cron|condrestart}" >&2 >-- >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