Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Way to pragrammatically start Syncthing under SyncTrayzor

See original GitHub issue

It’s sometimes required to free up memory for some “heavy” process (be physical model emulation or game). One can send API request (POST /rest/system/shutdown) to stop Syncthing. But how to restart it after process is completed (programmatically)? After running “raw” Syncthing SyncTrayzor doesn’t catch-up it’s status (and obviously can’t see logs). It would be very useful to be able to send some control event to SyncTrayzor. Possible solutions:

  • Easiest: RegisterWindowMessage
  • Best: When Syncthing is down open same TCP port and accept several REST endpoints (using same API key from config file) and close this port before starting Syncthing itself.
  • Portable: Use separate port for API.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

pyhedgehogcommented, Mar 21, 2017

@canton7 Excellent! Works for me.

canton7commented, Mar 19, 2017

Right, I’ve got something in. It’s available in the intermediate build here:

Mind trying it out, see if it works for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Starting Syncthing Automatically
Run at user log on or at system startup using Task Scheduler ... Enter the path to the parent folder of syncthing.exe in...
Read more >
SyncTrayzor: Start / Stop Sync Command in the latest ...
Hello friends, I'm new here. I noticed that in the last update there is the news: "- Add command-line parameters to start and...
Read more >
Starting and stopping Syncthing/Synctrayzor in Windows ...
I have set up Task Scheduler in windows to execute "synctrayzor.exe --start-syncthing" at night and then "synctrayzor.exe --shutdown" in the ...
Read more >
SyncTrayzor: Windows host for Syncthing. Installer, auto- ...
Installation using an installer; Automatically start on login; Remove the need to open an external browser to interact with Syncthing.
Read more >
SyncTrayzor to run on system power up instead of user login
The problem I have is SyncTrayzor always expects to start Syncthing. If Syncthing is already running it doesnt show that and instead throws ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found