Monitoring, managing syncthing remotely

Hi,

We are in the process of using syncthing in our business unit with some production stuff.

We did put in place a P.o.C a couple of weeks ago and I was using shawl.exe and the windows service to reboot the service and such.

I have noticed that the service Windows is gone and shawl.exe is gone as well is there any way to restart syncthing with our monitoring tool or any command line in case of a problem ?

To be honest I missed a couple of versions and I’m a bit lost at the moment, that’s why I opened a request here :-).

I would appreciate any insight anyone can give me to better support this tool with our client.

Thank you in advance for your time

Something doesn’t add up, but in any case it sounds like a Windows problem that’s unrelated to Syncthing.

The missing shawl.exe program means that the client’s PC could have been reimaged, it was removed on purpose, quarantined by security software, etc.

There currently aren’t enough details about how Syncthing is being used and what the desired setup is to make any informed recommendations.

In the meantime, the Syncthing documentation includes a page about ommand line operation: https://docs.syncthing.net/users/syncthing.html

In a syncthing installation with 1.29.2 there’s no Windows Service and within the package shawl.exe is gone.

I have a VM without any security software brand new and… that how i see it at the moment.

Turs out that the service can be started and stopped with stctl.exe now instead of the Windows service.

Also here is the script I’m using trough our monitoring tool to restart syncthing if needed

$STCmd = ($env:LOCALAPPDATA + "\Programs\Syncthing\stctl.exe")

powershell -command Start-Process "{$STCmd}" -Argumentlist '--stop','-q'
Start-Sleep -Seconds 20
powershell -command Start-Process "{$STCmd}" -Argumentlist '--start','-q'

The official Syncthing packages for Windows, macOS and Linux aren’t bundled in/with an installer, so it sounds like you’re using one of the 3rd-party packages.

Ah, so you’re using @billstewart’s Windows installer: GitHub - Bill-Stewart/SyncthingWindowsSetup: Syncthing Windows Setup

I’m using the one linked here

oh well, that’s why… then

sorry for wasting everyone’s time, I’m going back to my sandbox

cheers :stuck_out_tongue_winking_eye:

In a syncthing installation with 1.29.2 there’s no Windows Service and within the package shawl.exe is gone.

This is because you are installing in non administrative installation mode.

Starting in Syncthing Windows Setup 1.28.0, if you want to install the Windows service (which is only recommended for advanced configurations), you must run the installer with the /allusers command-line option. This is spelled out in the documentation.

Hi @billstewart Thank you so much for taking the time to get back to me :slight_smile: I Really do appreciate the time, dedication for this package and the extra time you take to write up here.

That being said after a couple of research, I have this figure it out and found a way to monitor it and kick the service a restart if needed.

Again, thanks for your time !

Cheers, David

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.