Eventscript functions - catch failures in ctdb_service_start().
[metze/ctdb/wip.git] / config / functions
index a7e3e539110273a2feb071d886f267b133449b8d..5dd31fe09a8883c13f53e7f6135c69b00e29f569 100755 (executable)
@@ -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
 }