maorui
2004-Apr-30 09:47 UTC
[Samba] Can I reconfigure Samba share without restart smb service?
Everytime I add or remove some samba shares, I must restart smb service to take effect. Is there anyway to reconfig it without restart?
ww m-pubsyssamba
2004-Apr-30 10:48 UTC
[Samba] Can I reconfigure Samba share without restart smb service?
Everytime I add or remove some samba shares, I must restart smb service to take effect. Is there anyway to reconfig it without restart?>> Yes there is, you must "kill -HUP" your parent smbd process, either work out which pid it is from running ps -aef (-aux or whateverfor your UNIX platform) or cat /sambainstalldir/var/locks/smbd.pid file which contains the PID, then "kill -HUP YourPID" For already established client connections they may not see the changes until they disconnect but for new connections your smb.conf/share changes will be visable, cheers Andy. << BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.
Laurent CARON
2004-Apr-30 11:17 UTC
[Samba] Can I reconfigure Samba share without restart smb service?
maorui wrote:>Everytime I add or remove some samba shares, I must restart smb service to >take effect. >Is there anyway to reconfig it without restart? > > > > >just reload it /etc/init.d/samba reload
Matthew J. DiBattista
2004-Apr-30 21:58 UTC
[Samba] Can I reconfigure Samba share without restart smb service?--NO
At least you don't have to reboot the system Matthew J. DiBattista Information Technology Technicians -----Original Message----- From: maorui [mailto:maorui@exavio.com.cn] Sent: Friday, April 30, 2004 5:47 AM To: samba@lists.samba.org Subject: [Samba] Can I reconfigure Samba share without restart smb service? Everytime I add or remove some samba shares, I must restart smb service to take effect. Is there anyway to reconfig it without restart?
Ryan Novosielski
2004-May-12 08:24 UTC
[Samba] Can I reconfigure Samba share without restart smb service?
AFAIK, Samba will notice a change on its own as well. ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Fri, 30 Apr 2004, ww m-pubsyssamba wrote:> Everytime I add or remove some samba shares, I must restart smb service to take effect. Is there anyway to reconfig it without restart? > > > >> Yes there is, you must "kill -HUP" your parent smbd process, either work out which pid it is from running ps -aef (-aux or whatever > for your UNIX platform) or cat /sambainstalldir/var/locks/smbd.pid file which contains the PID, then "kill -HUP YourPID" > For already established client connections they may not see the changes until they disconnect but for new connections your > smb.conf/share changes will be visable, > > cheers Andy. > > << > > BBCi at http://www.bbc.co.uk/ > > This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Mike Stewart
2004-May-12 08:36 UTC
[Samba] Can I reconfigure Samba share without restart smb service?
I read somewhere that Samba re-reads its config file every minute or so. I think one of my servers (2.2.0a) does this but the other (2.2.8a) seems to take longer. ----- Original Message ----- From: "Ryan Novosielski" <novosirj@umdnj.edu> To: "ww m-pubsyssamba" <pubsyssamba@bbc.co.uk> Cc: <samba@lists.samba.org> Sent: Wednesday, May 12, 2004 9:23 AM Subject: Re: [Samba] Can I reconfigure Samba share without restart smb service?> AFAIK, Samba will notice a change on its own as well. > > ---- _ _ _ _ ___ _ _ _ > |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin > |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) > \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 > > On Fri, 30 Apr 2004, ww m-pubsyssamba wrote: > > > Everytime I add or remove some samba shares, I must restart smb serviceto take effect. Is there anyway to reconfig it without restart?> > > > > > >> Yes there is, you must "kill -HUP" your parent smbd process, eitherwork out which pid it is from running ps -aef (-aux or whatever> > for your UNIX platform) or cat /sambainstalldir/var/locks/smbd.pid filewhich contains the PID, then "kill -HUP YourPID"> > For already established client connections they may not see the changesuntil they disconnect but for new connections your> > smb.conf/share changes will be visable, > > > > cheers Andy. > > > > << > > > > BBCi at http://www.bbc.co.uk/ > > > > This e-mail (and any attachments) is confidential and may containpersonal views which are not the views of the BBC unless specifically> > stated. > > If you have received it in error, please delete it from your system. Donot use, copy or disclose the information in any way nor act in> > reliance on it and notify the sender immediately. Please note that theBBC monitors e-mails sent or received.> > Further communication will signify your consent to this. > > -- > > 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 > >--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.680 / Virus Database: 442 - Release Date: 10/05/2004