1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

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 <martin@meltin.net>

(This used to be ctdb commit ddb73962d72d933bf0edc28be0dbb45bea7e5ef4)
This commit is contained in:
Martin Schwenke 2010-11-18 11:27:10 +11:00 committed by Ronnie Sahlberg
parent 3ab768e8d4
commit a2af87482b

View File

@ -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
}