From ddb73962d72d933bf0edc28be0dbb45bea7e5ef4 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 18 Nov 2010 11:27:10 +1100 Subject: [PATCH] Eventscript functions - catch failures in ctdb_service_start(). ctdb_service_start() currently succeeds if ctdb_counter_init() succeeds. This changes it to fail when a service start fails. Signed-off-by: Martin Schwenke --- config/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/functions b/config/functions index a7e3e539..5dd31fe0 100755 --- a/config/functions +++ b/config/functions @@ -706,9 +706,9 @@ ctdb_start_stop_service () ctdb_service_start () { if [ -n "$service_start" ] ; then - eval $service_start + eval $service_start || return $? else - service "$service_name" start + service "$service_name" start || return $? fi ctdb_counter_init } -- 2.34.1