Possible to shutdown/restart from the command line?

Hi, I didn’t see anything in the documentation or when running syncthing -help

I have syncthing running on an instance of Ubuntu and I don’t have access to a web browser on that machine. I don’t think syncthing is properly syncing between the Ubuntu and my local machine (OSX), and I’m trying to restart syncthing on Ubuntu to see if it helps. I’ve already restarted it on OSX using the web GUI

Just kill and restart the process, or use the rest api via curl if you want more advanced access.

Syncthing shuts down gracefully when it gets a TERM signal (the default signal of kill), yes.

Thanks for the reply guys. I was not able to kill it via sudo kill -9 PID

I also noticed my needs would be met with rsync so I’ve uninstalled syncthing.

killall. There are 2 st processes

Regular kill of either will do the right thing as well. Reaching directly for the hardest sledgehammer available might not, as the -9 kill will be interpreted as a crash and cause a restart when that’s possible, yes.

Generally speaking, never use kill -9. File a bug on whatever program didn’t shut down properly from a normal kill instead.


Very insightful response Jakob!

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