Shutdown by console


how can I shutdown syncthing using only the console? I know that there’s a button in the WebGUI for this and was wondering if I can do so using only the console, but I did not find any command for this.

Ctrl+C or kill the relevant process using kill on unix or taskkill on windows

Thank you for your fast reply, normally processes don’t like to get killed in my experience, but good to know that Syncthing can take this.

Well killing has different levels, make sure you use SIGTERM on unix and graceful kill on windows

Gracefull kill does not work for me under Win7, if I don’t use /F, the process denies termination, even with admin rights.

You’re probably missing the -no-restart option in that case.