From: Martin Schwenke Date: Thu, 18 Nov 2010 00:27:10 +0000 (+1100) Subject: Eventscript functions - catch failures in ctdb_service_start(). X-Git-Url: http://git.samba.org/?p=sahlberg%2Fctdb.git;a=commitdiff_plain;h=a24ac016323be5edcbae7d614315df92d77e1773 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 --- 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 }