Re: [CentOS] Help with bash script

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



On 6/16/06, Fajar Priyanto <fajarpri@xxxxxxxxxx> 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.

One possible approach is to look at an offering from qmail's author,
D. J. Bernstein <http://cr.yp.to/djb.html>.  DBJ publishes a very
useful set of tools known as daemontools
<http://cr.yp.to/daemontools.html>.  Supervise
<http://cr.yp.to/daemontools/supervise.html> switches to the directory
named s and starts ./run. It restarts ./run if ./run exits. It pauses
for a second after starting ./run, so that it does not loop too
quickly if ./run exits immediately.

Monit <http://www.tildeslash.com/monit/> is a utility for managing and
monitoring, processes, files, directories and devices on a UNIX
system. Monit conducts automatic maintenance and repair and can
execute meaningful causal actions in error situations.

restartWrapper (comes with Radiator) is something that has never
failed our operation in a decade, but I'm not sure what the license
looks like.

rgds/ldv
_______________________________________________
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