Send SIGHUP

Hactar eben at gate.net
Tue Dec 11 11:21:05 GMT 2001


On Tue, 11 Dec 2001, Gary Stainburn wrote:
> On Tuesday 11 December 2001 3:14 pm, Joel Hammer wrote:
> > On Wed, Dec 12, 2001 at 12:36:34AM +1100, Anthony wrote:
> > > At 10:02 p 11/12/2001, it was written:
> > > >Is it possible to send SIGHUP to the parant process to let samba reread
> > > >the smb.conf file, or is any way to let samba reread this file without
> > > >restarting samba
> > > Samba apparently re-reads the smb.conf file every 1 minute.
> > >
> > Are you sure this is true?
> > Checking access times on my smb.conf does not support that,

> Someone could try this by touching the smb.conf to see what happens.

Oh, you mean like this:

1100/0 root at pc.ttyp6:/usr/local/samba/bin > ls -l /etc/smb.conf /usr/local/samba/lib/smb.conf
   0 lrwxrwxrwx   1 root     root           29 Sep 29 14:08 /etc/smb.conf -> /usr/local/samba/lib/smb.conf
4.0k -rw-r--r--   1 root     root         1.7k Dec 11 13:54 /usr/local/samba/lib/smb.conf
1101/0 root at pc.ttyp6:/usr/local/samba/bin > date ; touch /etc/smb.conf ; stat /etc/smb.conf ; sleep 61 ; stat /etc/smb.conf
Tue Dec 11 14:04:18 EST 2001
  File: "/etc/smb.conf"
  Size: 1694         Filetype: Regular File
  Mode: (0644/-rw-r--r--)         Uid: (    0/    root)  Gid: (    0/    root)
Device: 34,6   Inode: 100979    Links: 1
Access: Tue Dec 11 14:04:18 2001(00000.00:00:00)
Modify: Tue Dec 11 14:04:18 2001(00000.00:00:00)
Change: Tue Dec 11 14:04:18 2001(00000.00:00:00)
  File: "/etc/smb.conf"
  Size: 1694         Filetype: Regular File
  Mode: (0644/-rw-r--r--)         Uid: (    0/    root)  Gid: (    0/
root)
Device: 34,6   Inode: 100979    Links: 1
Access: Tue Dec 11 14:04:18 2001(00000.00:01:01)
Modify: Tue Dec 11 14:04:18 2001(00000.00:01:01)
Change: Tue Dec 11 14:04:18 2001(00000.00:01:01)

Hm, curious that "stat" does not identify /etc/smb.conf as a link.

-- 
-eben         eQbWeEnR at gTaYtUeI.nOePt        home.tampabay.rr.com/hactar

And we never failed to fail / It was the easiest thing to do -- CSN
<html><body><!





More information about the samba mailing list