-
-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal - reload config file on save #1176
Comments
I'm glad for your upcoming contribution. Can we use The repo |
Okay.
The repo has some problems causing extra events on files (this issue). Users may find extra reload triggered in the log file. I couldn't find a stable library to watch a file on MacOS currently. If extra reloads on MacOS is not acceptable, maybe we have to close this issue. |
Double events is ok. The problem is missing events. You can try to test it or at least reload conf at a fixed interval ? |
Yes, I can get the
I go through the issues and only find this one related to losing events. There's no further information about it. Only double events bug is confirmed. BTW, I have MacOS environment and I can have a test about it if necessary. |
@YanB25 No progress? |
Any update? |
abstract
I'd like to contribute to this project by adding a new feature. I wish to support reloading the config files automatically on save.
details
Users can enable this feature in
frpc.ini
and whenever the config file is written, a
reload
is automatically triggered.implementation details
I would use https://github.com/fsnotify/fsnotify(Cross-platform file system notifications for Go) to watch the config files and use
go's channel
to pass the information asynchronously.motivation
It's more natural for users (including me) to
ssh
to the client and change the config file. AdminUI is great butssh
is better.A reload on save would be helpful.
The text was updated successfully, but these errors were encountered: