Re: [CentOS] Help with bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxx


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux