I’ve search the command line help (https://docs.syncthing.net/users/syncthing.html) and google isn’t my friend on this one, I’m looking to make sure that Syncthing can be started up and closed down from the task scheduler on windows, while I know I can taskkill /f /im, etc, I would like to make sure it’s closed down gracefully, so any files being written or read, etc, are not corrupted. (I know start up is possible, but I’m worried a startup fail will happen if the shutdown wasn’t proper)
Is is possible from command-line, i.e. syncthing.exe -shutdown and then it will wait until an operation is complete and the close itself?
If you’re using SyncTrayzor there are command line flags to can pass to it to start and stop syncthing gracefully. That might not fit your use case though.