Closed Palatis closed 8 years ago
Hmm, I already had a discussion about that topic with @rumpelsepp on the Syncthing forum. Since this patch, syncthing-inotify is started and stopped with syncthing. So I don't see the need to add another switch.
Please feel free to convince me otherwise, ...
syncthing.service and syncthing-inotify.service are different service. sometimes user forget to install the inotify service, but syncthing still gonna work (it just have to do the periodical scanning before it knows some file changed).
I think having a switch there to indicate service status is a good idea, anyway.
Sorry, I don't want to merge this. I have the impression that the issue you describe would better be addressed by giving the user a unobtrusive notification that syncthing-inotify is not running/not available. I don't see the need for a second on/off switch.
so, would you accept an inotify service indicator? like it just tell the user if the inotify service is installed/running or not, but unable to control the on/off state of the service?
the user will have to issue systemctl --user start/stop syncthing-inotify
somewhere else to control the service status.
and maybe just hide the message if the inotify service is up and running.
in a "no smoke, no problem." manner.
Yes, seems like a good idea. Thank you for working on that.
Also note that the user will not have to issue systemctl --user start/stop syncthing-inotify
manually, simply because if syncthing-inotify.service
is available, it is started and stopped with syncthing.service
.
I mean, we can't imagine how user would like to use the program.
Maybe he/she wants to start syncthing
without the inotify
service?
Although I can't think of a case that anyone would do that, but... Who knows!
True, we can't know for sure in what ways users would like to use the extension. We can however assume that they want to use it in a resource-efficient way, so usually they would want to have inotify. As long as we assume that, we should not add the option to disable inotify.
Furthermore, the syncthing team plans to merge inotify into syncthing. When this is done, the second switch would be obsolete.
toggles the syncthing-inotify.service