Shutdown from command line?

Hi there,

For a while I’ve been wondering if I could gracefully shutdown Syncthing using cron.

I was able to find only this thread about the subject…:

…But I still wonder what would be a proper way to do it? What would be a safe command to shut it down?

FWIW, my goal is to have Syncthing shutdown during the hours in which my remote node is not running, thus stopping local scans from unnecessarily spinning up my external drive.

Any pointers?

Thanks in advance! MadOp

Sure. pkill syncthing, or more verbosely, find the pid and send it a TERM signal.

If you have more than one pid (i.e., the monitor process) you can send the signal to one, the other, or both - it’ll all work the same.

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