开发者

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 )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜