[SCM] CTDB repository - branch 1.2 updated - ctdb-1.9.1-421-g83c2263

Ronnie Sahlberg sahlberg at samba.org
Mon May 9 19:10:46 MDT 2011


The branch, 1.2 has been updated
       via  83c226362fefb104d6dddac802c192a799d03acf (commit)
      from  89547a1910fd74f98ae9d5737914328eb5cc3eaf (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2


- Log -----------------------------------------------------------------
commit 83c226362fefb104d6dddac802c192a799d03acf
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue May 10 08:25:27 2011 +1000

    If samba fails to start for some reason, make this cause the startup event to fail too,   so that ctdbd will re-try the startup event later.
    Or else this will leave samba not running.
    
    CQ S1023394

-----------------------------------------------------------------------

Summary of changes:
 config/events.d/50.samba |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/50.samba b/config/events.d/50.samba
index a1f99fb..184fb2f 100755
--- a/config/events.d/50.samba
+++ b/config/events.d/50.samba
@@ -65,7 +65,11 @@ start_samba() {
 
 	# start the winbind service
 	[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
-		service "$CTDB_SERVICE_WINBIND" start
+		service "$CTDB_SERVICE_WINBIND" start || {
+			echo failed to start winbind
+			exit 1
+		}
+
 	}
 
 	# start Samba service. Start it reniced, as under very heavy load 
@@ -74,8 +78,15 @@ start_samba() {
 	[ "$CTDB_MANAGES_SAMBA" = "yes" ] && {
 		/usr/bin/net serverid wipe
 
-		nice_service "$CTDB_SERVICE_NMB" start
-		nice_service "$CTDB_SERVICE_SMB" start
+		nice_service "$CTDB_SERVICE_NMB" start || {
+			echo failed to start nmbd
+			exit 1
+		}
+
+		nice_service "$CTDB_SERVICE_SMB" start || {
+			echo failed to start samba
+			exit 1
+		}
 	}
 	return 0
 }


-- 
CTDB repository


More information about the samba-cvs mailing list