How do you restart Samba on OSX 10.6.7?
How do you restart Samba on OSX 10.6.7? I've looked everywhere can't fine any docs.
Reason for aski开发者_StackOverflow中文版ng is that on occasion Samba just hangs and I have to forcibly restart the mac to fix it. (restart command just hangs the mac)
On a terminal, sudo killall smbd
will terminate all smbd instances.
They will be respawned on demand accoring to my tests (i.e. kill all smbd, then try to browse the services with smbclient -L hostname
, and the daemons are restarted automagically).
You can check for smbd
processes easily with ps uax | grep smbd
Edit: if you need to really assassinate blocked smbd processes, use killall -9 smbd
(which is not recommended, see section on signals )
精彩评论