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?
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Modify samba shares without disconnecting users
-
jb238
- NewUser

- Posts: 3
- Joined: 23 Dec 2014 16:52
- Status: Offline
-
jandegr
- Starter

- Posts: 44
- Joined: 23 Jun 2012 17:41
- Location: Belgium
- Status: Offline
Re: Modify samba shares without disconnecting users
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
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