[CentOS] Help with bash script

Les Mikesell lesmikesell at gmail.com
Fri Jun 16 12:44:29 UTC 2006


On Fri, 2006-06-16 at 06:39, Fajar Priyanto wrote:
> Hi all,
> Can someone pls help me on how to make this bash script?
> I want to monitor a process, and then when the process (for some reason) dies, 
> the script will start the process again.

If you want it to happen at the system level, look at
a 'respawn' entry in /etc/inittab.  In a shell script, you
can use ':' to mean forever in a while target:

while :
 do 
  yourprogram
 done

-- 
  Les Mikesell
   lesmikesell at gmail.com





More information about the CentOS mailing list