From: Andreas Hoeschler (ahoesch@smartsoft.de)
Date: Mon Sep 08 2003 - 09:13:14 EDT
Dear managers,
we have a service process running in the background that unfortunately
dies from time to time. We are researching why. However, until we have
found the bug we would like to setup a script that is called by cron
every 5 mins. This script should check whether the process is still
running with something like
ps -Af | grep OurService
and if it is not then restart it with
nohup ./OurService &
I have no idea how such a shell script would look like. Ideas are
greatly appreciated.
Thanks ins advance!
Regards,
Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:04 EDT