Author Topic: How to shut down a node  (Read 2060 times)

0 Members and 1 Guest are viewing this topic.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Hey, that worked! Thanks, Chronos!
Hi Chronos, are you Chronos?  ???
BitShares committee member: abit
BitShares witness: in.abit

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Simple question. I have a node running, but if I kill the process, the entire blockchain gets replayed when I start up again. How do I gracefully shut down a node so that this doesn't happen?

Killing the process with SIGTERM (not SIGKILL) will make the node save its internal state to disk and exit cleanly. CTRL-C sends SIGTERM in a terminal session, so that works too.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline Chronos

Hey, that worked! Thanks, Chronos!

Offline Chronos

Hi Chronos, great question! Just press Ctrl+C to shut down your node.

Offline Chronos

Simple question. I have a node running, but if I kill the process, the entire blockchain gets replayed when I start up again. How do I gracefully shut down a node so that this doesn't happen?

Thanks!