# default is to not manage Samba
# CTDB_MANAGES_SAMBA=yes
+# should ctdb manage starting/stopping Winbind service?
+# CTDB_MANAGES_WINBIND=yes
+
# you may wish to raise the file descriptor limit for ctdb
# use a ulimit command here. ctdb needs one file descriptor per
# connected client (ie. one per connected client in Samba)
# make sure samba is not already started
service smb stop > /dev/null 2>&1
- service winbind stop > /dev/null 2>&1
- killall -0 -q smbd winbindd && {
- sleep 1
- # make absolutely sure samba is dead
- killall -q -9 smbd winbindd
+
+ # restart the winbind service
+ [ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
+ service winbind stop > /dev/null 2>&1
+ killall -0 -q smbd winbindd && {
+ sleep 1
+ # make absolutely sure samba is dead
+ killall -q -9 smbd winbindd
+ }
+ service winbind start
}
# 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
- service winbind start
nice service smb start
;;
shutdown)
# shutdown Samba when ctdb goes down
service smb stop
- service winbind stop
+
+ # stop the winbind service
+ [ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
+ service winbind stop
+ }
;;
monitor)
ctdb_check_tcp_ports "Samba" $smb_ports
# check winbind is OK
- ctdb_check_command "winbind" "wbinfo -p"
+ [ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
+ ctdb_check_command "winbind" "wbinfo -p"
+ }
;;
esac
<h3>CTDB_MANAGES_SAMBA</h3>
This is a parameter in /etc/sysconfig/ctdb<br><br>
-When this parameter is set to "yes" CTDB will start/stop/restart the localo samba daemon as the cluster configuration changes.<br><br>
+When this parameter is set to "yes" CTDB will start/stop/restart the local samba daemon as the cluster configuration changes.<br><br>
When this parameter is set you should also make sure that samba is NOT started by default by the linux system when it boots:
<pre>
chkconfig samba off
It is strongly recommended that you set this parameter to "yes" if you intend to use clustered samba.
+<h3>CTDB_MANAGES_WINBIND</h3>
+This is a parameter in /etc/sysconfig/ctdb<br><br>
+When this parameter is set to "yes" CTDB will start/stop/restart the local winbind daemon as the cluster configuration changes.<br><br>
+When this parameter is set you should also make sure that winbind is NOT started by default by the linux system when it boots:
+<pre>
+ chkconfig winbind off
+</pre>
+
+Example:
+<pre>
+ CTDB_MANAGES_WINBIND="yes"
+</pre>
+
+It is strongly recommended that you set this parameter to "yes" if you intend to use clustered samba.
+
<!--#include virtual="footer.html" -->