Thanks again Greg for helping.
Can you point me to where I can dechiper the line
/bin/kill -HUP cat /var/lock/samba/*.pid 2> /dev/null 2> /dev/null || true
and how I would add in
"/etc/rc.d/initd/smb restart"
Samba itself IS stable. What the problem is the changing from Master Browser to non-Master Browser. I want Samba to remain or re-aquire Master Browser status during the logrotate process.
Your comments have me a little confused.
First, I installed (and re-installed) from rpms. From:
http://myEZserver.com/downloads/mitel/dmc-mitel-samba-2.2.2.tar.gzI got:
dmc-mitel-samba-2.2.2-0.noarch.rpm
samba-2.2.2-1es.i386.rpm
samba-client-2.2.2-1es.i386.rpm
samba-common-2.2.2-1es.i386.rpm
All installed : rpm -Uhv
Second, from:>>>>>>>>>>>>>>>>>>>>>>>>>
http://www.linuxgazette.com/issue50/misc/pollman/samba.htmlI read this to mean that the HIGHER the OS level the better the chances of winning elections.
and from:>>>>>>>>>>>>>>>>>>>>>>>>>>>>
http://email.riverdale.k12.or.us/mailarchives/k12linux/352.htmlAn os level of 0 causes Samba to lose all elections, even if the
only other machines around are Win 3.1/Win9x computers, and those
operating systems are too braindead to properly carry out the duties of a
LMB. According to samba docs/textdocs/BROWSING.txt, Win9x uses an OS level of 1, and NT uses an OS level of 32. Currently, I think NT uses a wider
range of OS levels, depending on the flavor (server, workstation, etc),
but I think so far they're all in the range of 31-64. So setting up your
smb.conf with...
and from:>>>>>>>>>>>>>>>>>>>>>>>>
http://ps-ax.com/samba-fq.htmlI found that the HIGHER the better up to 255
When I type in: grep -s -e 'os level' /etc/smb.conf
# os level = 33
os level = 165
My current os level is 165.
But why did it win elections with it set to 0 when it should have lost?
BTW have you tried to restart Samba with a file open? What were your results?
When I type in "/usr/bin/killall -HUP nmbd" I get:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[2001/11/13 20:37:33, 0] nmbd/nmbd.c:sig_hup(92)
Got SIGHUP dumping debug info.
[2001/11/13 20:37:33, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(292)
dump_workgroups()
dump workgroup on subnet 192.168.1.2: netmask= 255.255.255.0:
CADD2(1) current master browser = LIMELIGHT
LIMELIGHT 400c9b0b (e-smith samba server)
[2001/11/13 20:37:33, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(292)
dump_workgroups()
dump workgroup on subnet UNICAST_SUBNET: netmask= 192.168.1.2:
CADD2(1) current master browser = UNKNOWN
LIMELIGHT 40099b0b (e-smith samba server)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Now I don't know if I am better off or not.