Cardano Service stop

TimeoutStopSec= as well as some other related options; look around this section:
https://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutStopSec=

You can set these parameters if you start cardano-node as a service, as described in the manual page above, with a Cardano example in the second part of this posting: