Nothing happens I guess… but from time to time when I use sudo systemctl restart cnode instead stop/start its staying in starting for hours.
I believe because it was not stoped correctly…
In particular, the RestartSec setting. The manpage says it is only 100ms by default:
RestartSec=
Configures the time to sleep before restarting a service (as
configured with Restart=). Takes a unit-less value in
seconds, or a time span value such as “5min 20s”. Defaults to
100ms.
Unrelated but important is the TimeoutStopSec=300 because without it the default is 90 seconds and sometimes cardano-node takes a bit longer to cleanly stop. If graceful shutdown doesn’t end within that time the systemd sends the process a SIGKILL and that will cause cardano-node to recheck its entire blockchain database on restart which could take a few hours. I have been bitten by that one a few times.
Note also that cardano-node expects SIGINT, not SIGTERM for graceful shutdown.
Another follow-up question:
My supposedly BP node is showing “Relay - Mainnet” instead of “Core - Mainnet”. I thought it’ll automatically show as Core once syncing is complete, but it is not. What I might have done wrong?