<p><code>bitcoin-cli stop</code>. All these *notify interfaces accept some cmd as argument.</p>

CC BY-SA 4.0
2022-03-15T01:43:59.960Z
2022-03-15T01:43:59.960Z
Davidson Souza
<pre><code>  -alertnotify=&lt;cmd&gt;
       Execute command when a relevant alert is received or we see a really
       long fork (%s in cmd is replaced by message)
</code></pre>
<p>How to stop Bitcoin Core on a really long fork?<br />
<code>-alertnotify=stop</code>?<br />
<code>-alertnotify=&quot;bitcoin-cli stop&quot;</code>? (assume valid bitcoin-cli can be found in $PATH)</p>

<bitcoin-core><blockchain-fork><alert-system>
stop on alertnotify
Mercedes
# stop on alertnotify

(Asked by: username_0 on 2022-03-13)

-alertnotify=
       Execute command when a relevant alert is received or we see a really
       long fork (%s in cmd is replaced by message)

How to stop Bitcoin Core on a really long fork?
-alertnotify=stop?
-alertnotify="bitcoin-cli stop"? (assume valid bitcoin-cli can be found in $PATH)

**Tags:** bitcoin-core, blockchain-fork, alert-system


---

## 1 answers

### Answer by username_1 on 2022-03-15. Score: 0 | Accepted answer

`bitcoin-cli stop`. All these \*notify interfaces accept some cmd as argument.


---

