Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Restart | 3 comments | Create New Account
Click here to return to the 'Restart' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Restart
Authored by: timb on Sep 06, '02 10:24:43AM

You can also kill smbd and nmbd and restart them (/usr/sbin/smbd and nmbd) or you can do what the Editor said (Stopping and Starting Windows Sharing) I just found that it clears Sambas cache better to restart, so, if you have problems, try a restart first.



[ Reply to This | # ]
Restart
Authored by: BraindeadMac on Sep 06, '02 12:18:44PM
Actually the correct way to get smbd to restart is to use SIGHUP, i.e.,
do sudo kill -HUP theprocessidofsmbd. The man for smbd
tell you that doing a kill (-9) can leave memory in an inconsistent state.

[ Reply to This | # ]
Restart
Authored by: Ed Lally on Sep 21, '02 11:01:17AM

You don't always need to restart Samba, as long as you can wait a few minutes. Samba will automatically re-read its configuration file every few minutes and will pick up the changes. Since Samba is frequently used to serve files on Unix servers to Windows clients, you wouldn't want to have to kill everyone's session (i.e. restart Samba) just to add a new network share.

But, if you need your changes to take effect immediately, you can also send a SIGHUP to the parent smbd process to force it to re-read the configuration file.



[ Reply to This | # ]