[Samba] smb.conf question

Jason Barker jbarker at edulog.com
Tue Feb 12 10:08:09 GMT 2002

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 at HammersHome.com]
Sent: Tuesday, February 12, 2002 10:07 AM
To: Martyn Ranyard; samba at 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.

> 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
> >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 at 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

More information about the samba mailing list