[Samba] nmbd dies at random

Joel Hammer Joel at HammersHome.com
Mon Nov 18 23:11:01 GMT 2002


Would you consider, as a short term solution, running a script in the
background, sort of like this:
#!/bin/bash
while [ 1 -le 2 ]
  do
   ps ax | grep -v grep | grep nmbd > /dev/null
   [ $? -eq 0 ] || nmbd -D
   sleep 1
  done
You could make this fancier by putting in a command to email you or
alert someone if nmbd won't restart.

Just some more odd thoughts.
The pid for the parent nmbd process may be stored in the samba directory
or elsewhere.  When nmbd dies, does this pid remain stored, or is it
removed? If is is removed, that might indicate that the shutdown of nmbd
was not just a simple crash, but was orderly.
Maybe you won't be able to start another copy of nmbd
while this pid is stored. 
You may have to invoke the redhat stop and startup scripts do do this
right, or even better, just get rid of those complicated scripts and
write your own.

Joel

   



More information about the samba mailing list