While the Samba server is running, does it ever refresh the contents of the smb.conf file, or do you have to restart the server for it to see changes to the smb.conf file? Thanks in advance. Jeff Rasnick Software Technologies, Inc. www.softtechks.com -------------- next part -------------- HTML attachment scrubbed and removed
Yes, it refreshes every so often (every 20-30sec's I think), though I am not 100% of the exact time, If you make a change to the smb.conf, there is generally no need to restart samba, that is unless you want an immediate response.. Mark At 04:17 PM 2/12/02, Jeff Rasnick wrote:>While the Samba server is running, does it ever refresh the contents of >the smb.conf file, or do you have to restart the server for it to see >changes to the smb.conf file? Thanks in advance. > >Jeff Rasnick >Software Technologies, Inc. ><http://www.softtechks.com>www.softtechks.com----- ---------- Mark Cooke Internet Operations Technician MM Group Ltd Tel: 8141 (Internal) Tel: (0117) 9168141 (External) Email: mark@mmebs.co.uk http://www.mmgroup.co.uk
At 04:30 PM 2/12/02 +0000, Mark Cooke wrote:>Yes, it refreshes every so often (every 20-30sec's I think), though I am >not 100% of the exact time, If you make a change to the smb.conf, there is >generally no need to restart samba, >that is unless you want an immediate response..In which case, send the processes a HUP signal (which just reloads the config file) : (on linux) killall -HUP smbd (on others) kill -HUP <pid of smbd> Hope this helps.>Mark > >At 04:17 PM 2/12/02, Jeff Rasnick wrote: >>While the Samba server is running, does it ever refresh the contents of >>the smb.conf file, or do you have to restart the server for it to see >>changes to the smb.conf file? Thanks in advance. >> >>Jeff Rasnick >>Software Technologies, Inc. >><http://www.softtechks.com>www.softtechks.com > >----- >---------- >Mark Cooke >Internet Operations Technician >MM Group Ltd >Tel: 8141 (Internal) >Tel: (0117) 9168141 (External) >Email: mark@mmebs.co.uk >http://www.mmgroup.co.uk > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/sambaMartyn Life's a bitch, but so am I.
My understanding reads it once (at startup) unless it receives a hup signal. -----Original Message----- From: Joel Hammer [mailto:Joel@HammersHome.com] Sent: Tuesday, February 12, 2002 9:07 AM To: Martyn Ranyard; samba@lists.samba.org Subject: Re: [Samba] smb.conf question I am fairly sure kill -HUP smbd does not do an immediate reload of smb.conf, at least not on my linux box. I am now monitoring my smb.conf file with: ls -al --time=acces to see how often it is accessed. Right now, Tue Feb 12 11:58:26 EST 2002 this yields: Feb 12 09:32 /usr/local/samba/lib/smb.conf So, no reload, it seems, for over two hours. Joel> At 04:30 PM 2/12/02 +0000, Mark Cooke wrote: > >Yes, it refreshes every so often (every 20-30sec's I think), though I am > >not 100% of the exact time, If you make a change to the smb.conf, thereis> >generally no need to restart samba, > >that is unless you want an immediate response.. > > In which case, send the processes a HUP signal (which just reloads the > config file) : > > (on linux) killall -HUP smbd > > (on others) kill -HUP <pid of smbd> > > Hope this helps. > > >Mark > > > >At 04:17 PM 2/12/02, Jeff Rasnick wrote: > >>While the Samba server is running, does it ever refresh the contents of > >>the smb.conf file, or do you have to restart the server for it to see > >>changes to the smb.conf file? Thanks in advance. > >> > >>Jeff Rasnick > >>Software Technologies, Inc. > >><http://www.softtechks.com>www.softtechks.com > > > >----- > >---------- > >Mark Cooke > >Internet Operations Technician > >MM Group Ltd > >Tel: 8141 (Internal) > >Tel: (0117) 9168141 (External) > >Email: mark@mmebs.co.uk > >http://www.mmgroup.co.uk > > > > > >-- > >To unsubscribe from this list go to the following URL and read the > >instructions: http://lists.samba.org/mailman/listinfo/samba > > Martyn > > Life's a bitch, but so am I. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
I use the command: kill -s SIGHUP [pid] [pid] [pid] Where each [id] = the PIDs of each samba process. If I go look at the log file for smbd, there are lines that say something like "Got SIGHUP". And when I make a change to the smb.conf file, and send SIGHUP, the changes are always reflected appropriately (i.e., a new share appears). Quick note: In the documentation, it says smbd checks smb.conf for changes every 60 seconds. I don't know if it actually re-reads it, or just checks if it was modified or what. -----Original Message----- From: Joel Hammer [mailto:Joel@HammersHome.com] Sent: Tuesday, February 12, 2002 10:07 AM To: Martyn Ranyard; samba@lists.samba.org Subject: Re: [Samba] smb.conf question I am fairly sure kill -HUP smbd does not do an immediate reload of smb.conf, at least not on my linux box. I am now monitoring my smb.conf file with: ls -al --time=acces to see how often it is accessed. Right now, Tue Feb 12 11:58:26 EST 2002 this yields: Feb 12 09:32 /usr/local/samba/lib/smb.conf So, no reload, it seems, for over two hours. Joel> At 04:30 PM 2/12/02 +0000, Mark Cooke wrote: > >Yes, it refreshes every so often (every 20-30sec's I think), though I am > >not 100% of the exact time, If you make a change to the smb.conf, thereis> >generally no need to restart samba, > >that is unless you want an immediate response.. > > In which case, send the processes a HUP signal (which just reloads the > config file) : > > (on linux) killall -HUP smbd > > (on others) kill -HUP <pid of smbd> > > Hope this helps. > > >Mark > > > >At 04:17 PM 2/12/02, Jeff Rasnick wrote: > >>While the Samba server is running, does it ever refresh the contents of > >>the smb.conf file, or do you have to restart the server for it to see > >>changes to the smb.conf file? Thanks in advance. > >> > >>Jeff Rasnick > >>Software Technologies, Inc. > >><http://www.softtechks.com>www.softtechks.com > > > >----- > >---------- > >Mark Cooke > >Internet Operations Technician > >MM Group Ltd > >Tel: 8141 (Internal) > >Tel: (0117) 9168141 (External) > >Email: mark@mmebs.co.uk > >http://www.mmgroup.co.uk > > > > > >-- > >To unsubscribe from this list go to the following URL and read the > >instructions: http://lists.samba.org/mailman/listinfo/samba > > Martyn > > Life's a bitch, but so am I. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba