syncthing-android icon indicating copy to clipboard operation
syncthing-android copied to clipboard

can't stop and then start via apis

Open steelbytes opened this issue 1 year ago • 2 comments

scenario: I want to stop syncthing while a lot of file manipulation is performed and then start it again. Sounds simple ...

attempt 1: use broadcast stop and start. This doesn't work because I have 'Start automatically on boot' (like i suspect most people) . I don't understand why you would make such a limit but ok. (https://github.com/Catfriend1/syncthing-android/wiki/Remote-Control-by-Broadcast-Intents)

attempt 2: use the rest api to post shutdown and then use broadcast start. The rest shutdown works but then the broadcast start doesn't. Only way to start again is to manually force stop syncthing (not just swipe close) and then open syncthing.

attempt 3: write this github issue :-(

steelbytes avatar Mar 07 '23 00:03 steelbytes

Did you try the wiki article from the official app? https://github.com/syncthing/syncthing-android/wiki/Remote-Control-by-Broadcast-Intents

Catfriend1 avatar Mar 09 '23 21:03 Catfriend1

Did you try the wiki article from the official app? https://github.com/syncthing/syncthing-android/wiki/Remote-Control-by-Broadcast-Intents

YES. which is why I actually mentioned it above.

steelbytes avatar Mar 12 '23 22:03 steelbytes