Is it possible to hook some script to shutting down sequence for Linux?
To give you a bit more context processes of nodes of the cluster are started as processes from cluster -master. They are not running as services. However if someone restart a node and didn't stop the appropriate process manually, it causes a troubles because the node hasn't been stopped gracefully.
I would like to avoid this situation. Processes they don't run as services.