Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Processor monitor

Status
Not open for further replies.

mouse123

IS-IT--Management
Dec 16, 2002
82
US
I am running some java program, somehow it stops after couple of days. Is there any script to monitor this process
 
Monitor it and do what exactly? Re-start it, log failures, raise alarms?
 

to get a notification and re-start the process
 
You could create a script that:
1) emails you, saying "starting app @ $(date).."
2) starts your app.
Then add a reference to this script in /etc/inittab.
 
Yep, follow Hammer's lead.

You'll want to create a script that checks your process every few minutes.... or however often you want.

1. Check the process
2. Start it if isn't running ; do nothing if it is
3. send an email or creating a log saying the process was restarted
4. Put your new "listener" script into crontab to run every few minutes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top