From a5c5eee7d186d938c5b458cb6dbf0c78cb548b63 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 1 Dec 2014 12:21:16 +1100 Subject: [PATCH] ctdb-scripts: Try to deal with Ubuntu having /usr/sbin/service Falling back to running the initscript doesn't work because it detects that upstart is being used and fails. This was observed when trying to start winbind on Ubuntu 11.04. Signed-off-by: Martin Schwenke Reviewed-by: Michael Adam --- ctdb/config/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctdb/config/functions b/ctdb/config/functions index 23cb2364e3e..df818a03231 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -171,6 +171,8 @@ _service () if [ -x /sbin/service ]; then $_nice /sbin/service "$_service_name" "$_op" + elif [ -x /usr/sbin/service ]; then + $_nice /usr/sbin/service "$_service_name" "$_op" elif [ -x $CTDB_ETCDIR/init.d/$_service_name ]; then $_nice $CTDB_ETCDIR/init.d/$_service_name "$_op" elif [ -x $CTDB_ETCDIR/rc.d/init.d/$_service_name ]; then -- 2.11.4.GIT