Skip to content

Graceful Shutdown

yihuang edited this page Apr 23, 2024 · 2 revisions

The node can be gracefully shut down when terminated with signal SIGTERM or SIGQUIT, for example in shell, use kill -TERM $PID, or kill -QUIT $PID.

Graceful shutdown makes sure there are no version mismatch issues on start-up, it also flushes the versiondb wal on shutdown, to support smooth rocksdb version upgrade.

Cosmovisor

Cosmovisor kills the process un-gracefully by default, you need to set the environment variable DAEMON_SHUTDOWN_GRACE=1m to enable it, the value is a timeout duration, after which it'll fall back to un-gracefully kill.

Clone this wiki locally