start winbind before smbd
authorRonnie Sahlberg <sahlberg@ronnie>
Thu, 16 Aug 2007 01:34:35 +0000 (11:34 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Thu, 16 Aug 2007 01:34:35 +0000 (11:34 +1000)
config/events.d/50.samba

index fe09338b0f19fe812cd9526ac2b9b0459bd51065..cebe0aedf450326abd4c20cdfba07232dc0a613e 100755 (executable)
@@ -35,14 +35,14 @@ case $cmd in
        ctdb_wait_directories "Samba" $smb_dirs 
 
        # make sure samba is not already started
-       service winbind stop > /dev/null 2>&1
        service smb stop > /dev/null 2>&1
+       service winbind stop > /dev/null 2>&1
 
        # start Samba service. Start it reniced, as under very heavy load 
        # the number of smbd processes will mean that it leaves few cycles for
        # anything else
-       nice service smb start
        service winbind start
+       nice service smb start
 
        # wait for the Samba tcp ports to become available
        smb_ports=`testparm -sv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`