I'm running a blockchain node validator in a GCP ubuntu vm and need to shut it down so I can restart it.
What's the best way to stop just the validator, and not the entire vm?
The blockchain docs recommends stopping the running client (through a service manager or some mechanism that sends a SIGINT signal to the process), so it can trigger 2 events while gracefully shutting down:
- Running data flush to disk
- Release of the DB files lock by LevelDB
However the docs do not explain how to do this.