Can anyone tell me if it's possible to get samba to re-read smb.conf while it's running. At the moment everytime I make changes in smb.conf I kil all samba processes and re-run samba. Is there a better way? Nick Parker, Berger-Levrault, France
Nick Parker <npar@Berger-Levrault.fr> wrote: : Can anyone tell me if it's possible to get samba to re-read smb.conf while : it's running. At the moment everytime I make changes in smb.conf I kil all : samba processes and re-run samba. Is there a better way? Probably doing "killall -HUP smbd" (and nmbd instead of smbd) will do it but I am not sure. Can anyone confirm this? E.- -- Eloy A. Paris Information Technology Department Rockwell Automation de Venezuela Telephone: +58-2-9432311 Fax: +58-2-9431645
Luke Kenneth Casson Leighton
1997-Aug-29 14:38 UTC
Updating smb.conf without restarting samba
samba should stat all its files, and re-read the config files (and all sub-config files rad from include = option). if it _desn't, then do a kill -HUP to get it to re-read. luke On Fri, 29 Aug 1997, Nick Parker wrote:> Can anyone tell me if it's possible to get samba to re-read smb.conf while > it's running. At the moment everytime I make changes in smb.conf I kil all > samba processes and re-run samba. Is there a better way? > > Nick Parker, > Berger-Levrault, France > >
At 10:22 PM 8/29/97 +1000, Nick Parker wrote:>Can anyone tell me if it's possible to get samba to re-read smb.conf while >it's running. At the moment everytime I make changes in smb.conf I kil all >samba processes and re-run samba. Is there a better way?I don't know what version you're running but, if I'm only making changes to "shares" then it does re-read after I've updated the smb.conf file. I believe that it checks smb.conf on each browse request, but I'm not sure. In any case, I usually do not have to re-boot Samba in order to propogate the updates, unlike adding Virtual Hosts to Apache (<sigh>, guess what *i've* been workin' with ...). _________________________________________________ Roeland M.J. Meyer (RM993) e-mail: rmeyer@mhsc.com web pages: http://www.mhsc.com/~rmeyer _________________________________________________
>>At 10:22 PM 8/29/97 +1000, Nick Parker wrote: >>>Can anyone tell me if it's possible to get samba to re-read smb.conf while >>>it's running. At the moment everytime I make changes in smb.conf I kil all >>>samba processes and re-run samba. Is there a better way? >> >>I don't know what version you're running but, if I'm only making changes to >>"shares" then it does re-read after I've updated the smb.conf file. I >>believe that it checks smb.conf on each browse request, but I'm not sure. >>In any case, I usually do not have to re-boot Samba in order to propogate >>the updates, unlike adding Virtual Hosts to Apache (<sigh>, guess what >>*i've* been workin' with ...). > >>Roeland M.J. Meyer (RM993) >I usually use a script to refresh samba. I kill and restart nmbd and smbd processes owned by root and leave all other users smbd processes running. On AIX under root user I use: kill `ps -ef | grep nmbd | awk '{print $2}'` 2>/dev/null kill `ps -ef | grep smbd | grep root | awk '{print $2}'` 2>/dev/null /usr/local/samba/bin/nmbd -D -G WORKGROUP -n SAMBASERVERNAME /usr/local/samba/bin/smbd -D -a or kill `ps -ef | grep 'usr/local/samba/bin' | grep root | awk '{print $2}'` 2>/dev/null /usr/local/samba/bin/nmbd -D -G WORKGROUP -n SAMBASERVERNAME /usr/local/samba/bin/smbd -D -a Some extra options to the kill command might be a better solution than what I use. Regards, Dave Lawson, Menasco Aerospace, Oakville, Ontario, Canada davela@menasco.com