I actually tried doing this on a redhat system about 2-3 years ago and for whatever reason I couldnt get it to work, but- It was a POC.
I essentially backdoored it with a cronjob that would run every 5 minutes and also act as a monitoring script
Db2 Running? Good.. No? Start!..sleep
ARSSOCKD Running? Good.. No? check DB2-> Start
ARSLOAD(s)/ARSJESD Running? Good.. No? Check arssockd-> Start!
That was the best purpose because I also added logic to where if it failed a second time in X minutes, to send out an email/page. So within 5 min of a server being booted, it would come up.
I essentially backdoored it with a cronjob that would run every 5 minutes and also act as a monitoring script
Db2 Running? Good.. No? Start!..sleep
ARSSOCKD Running? Good.. No? check DB2-> Start
ARSLOAD(s)/ARSJESD Running? Good.. No? Check arssockd-> Start!
That was the best purpose because I also added logic to where if it failed a second time in X minutes, to send out an email/page. So within 5 min of a server being booted, it would come up.