I need to create watch dog process (will run in linux version 5.x) that look all time on /etc/cluster.cf file
And if the process matches the string: machineA_is_active in the cluster.cf file
Then this process will execute other script
My question is – how to run this process in way that process will up and running all time that Linux is up –
and in case this process is down need to startup this process again
So please advice what the basic structure for this scenario ?
(I will happy if I get real example)