Requirement:
1.Need to set up a alert monitor for error file
2. if the error occurred the script should go and kill the process(PID) and re-start the process
DIR_PATH=”/apps/opt/oss/emailparser/logs”
FILE_NAME=”application.log”
Error: “c.verizon.parser.controller.EmailParser : EmailParser – connectToStore: Error in connecting store”
when i do this command below process details showed ps -ef | grep EmailParser
process details: pcp 15750 15435 0 03:47 pts/1 00:00:00 grep –color=auto EmailParser
So the PID 15750 should kill and outo-restart
Need a shell script
The post Creation of a monitor for auto-restart first appeared on COMPLIANT PAPERS.