# Shutdown from command line?

**URL:** https://forum.syncthing.net/t/shutdown-from-command-line/8223
**Category:** Support
**Created:** [September 12, 2016, 1:06am UTC](https://forum.syncthing.net/t/shutdown-from-command-line/8223 "2016-09-12T01:06:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MadOp](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@MadOp](https://forum.syncthing.net/u/MadOp)
#### Post date: [September 12, 2016, 1:06am UTC](https://forum.syncthing.net/t/shutdown-from-command-line/8223/1 "2016-09-12T01:06:36Z")

</div>

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…:

> [@Shutdown by console](https://forum.syncthing.net/t/shutdown-by-console/2752):
>
> Hi, 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.

…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

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 12, 2016, 4:58am UTC](https://forum.syncthing.net/t/shutdown-from-command-line/8223/2 "2016-09-12T04:58:48Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 12, 2016, 5:02am UTC](https://forum.syncthing.net/t/shutdown-from-command-line/8223/3 "2016-10-12T05:02:21Z")

</div>

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