Page 1 of 1

Modify samba shares without disconnecting users

Posted: 24 Dec 2014 14:55
by jb238
Adding or modifying shares in the GUI seems to restart samba, which disconnects open files.

"killall -HUP smbd" was mentioned in a Linux forum. Could this be implemented in "Apply changes" function of NAS4Free GUI?

Re: Modify samba shares without disconnecting users

Posted: 25 Dec 2014 13:29
by jandegr
Hi,
I can imagine situations with a lot of clients where users wil not like it if the admin restarts samba each time he wants to make a small config change during working hours.
I remember from when I was first upgrading to samba41 that samba reloads it's config every 60seconds, so the following is worth testing :
https://code.google.com/p/nas4free-exte ... _share.php
I tested briefly and an open stream just kept streaming during and after the config change.
I even think config is reloaded right-away the way the RC script works instead of passively waiting up to 60 seconds for the config to be reloaded.

regards,
Jan