From: Amitay Isaacs Date: Thu, 19 Jan 2017 06:04:20 +0000 (+1100) Subject: ctdb-tests: Drop calls to ctdb_service_managed and ctdb_service_unmanaged X-Git-Tag: talloc-2.1.9~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7c2f270b5d37e75a6176b4a3dce923b981ef191;p=thirdparty%2Fsamba.git ctdb-tests: Drop calls to ctdb_service_managed and ctdb_service_unmanaged These functions have been removed as part of dropping CTDB_SERVICE_AUTOSTARTSTOP functionality. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index b7b4848a41c..5a638dfa707 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -802,8 +802,6 @@ setup_samba () if [ "$1" != "down" ] ; then debug "Marking Samba services as up, listening and managed by CTDB" - # Get into known state. - eventscript_call ctdb_service_managed # All possible service names for all known distros. for i in "smb" "nmb" "samba" "smbd" "nmbd" ; do @@ -822,8 +820,6 @@ setup_samba () export FAKE_SLEEP_FORCE=0.1 else debug "Marking Samba services as down, not listening and not managed by CTDB" - # Get into known state. - eventscript_call ctdb_service_unmanaged # All possible service names for all known distros. for i in "smb" "nmb" "samba" "smbd" "nmbd" ; do @@ -865,8 +861,6 @@ setup_winbind () if [ "$1" != "down" ] ; then debug "Marking Winbind service as up and managed by CTDB" - # Get into known state. - eventscript_call ctdb_service_managed service "winbind" force-started @@ -876,8 +870,6 @@ setup_winbind () else debug "Marking Winbind service as down and not managed by CTDB" - # Get into known state. - eventscript_call ctdb_service_unmanaged service "winbind" force-stopped @@ -919,7 +911,6 @@ setup_nfs () if [ "$1" != "down" ] ; then debug "Setting up NFS environment: all RPC services up, NFS managed by CTDB" - eventscript_call ctdb_service_managed service "nfs" force-started service "nfslock" force-started @@ -933,7 +924,6 @@ setup_nfs () else debug "Setting up NFS environment: all RPC services down, NFS not managed by CTDB" - eventscript_call ctdb_service_unmanaged service "nfs" force-stopped service "nfslock" force-stopped @@ -1187,7 +1177,6 @@ setup_vsftpd () else debug "Setting up VSFTPD environment: service down, not managed by CTDB" - eventscript_call ctdb_service_unmanaged service vsftpd force-stopped export CTDB_MANAGED_SERVICES="foo" @@ -1207,7 +1196,6 @@ setup_httpd () debug "Setting up HTTPD environment: service down, not managed by CTDB" for service_name in "apache2" "httpd" ; do - eventscript_call ctdb_service_unmanaged service "$service_name" force-stopped done