Electrs: RPC call to gracefully stop electrs

Created on 16 Jul 2019  路  5Comments  路  Source: romanz/electrs

Hi, is there any RPC call to gracefully stop electrs instead of killing the process?

Most helpful comment

@brandoncurtis @reynico Please take a look at #158

All 5 comments

If you send SIGINT or SIGTERM to electrs, it should exit gracefully:

2019-07-17T12:29:29.795+03:00 - INFO - Electrum RPC server running on 127.0.0.1:50001 (protocol 1.4)
^C2019-07-17T12:29:32.440+03:00 - INFO - stopping server: Interrupted by signal 2

https://github.com/romanz/electrs/blob/25ce69ea0499f1cb7902ab4aff0d6a0d69b869f3/src/signal.rs#L30

I can add an additional "shutdown" RPC, but note that it's not part of the Electrum protocol:
https://electrumx.readthedocs.io/en/latest/protocol-methods.html

Note that electrs doesn't appear to respond to SIGINT or SIGTERM if it's in the initial sync process.

Thanks @romanz ! I'll close this issue.

@brandoncurtis @reynico Please take a look at #158

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darklow picture darklow  路  8Comments

kenshin-samourai picture kenshin-samourai  路  4Comments

romanz picture romanz  路  5Comments

burguesia picture burguesia  路  4Comments

romanz picture romanz  路  3Comments