[svlug] How to auto-restart a dead program?
kevin@ank.com
kevin at ank.com
Tue Jul 1 06:33:19 PDT 2003
That is the function of init. 'man inittab'.
On Tue, Jul 01, 2003 at 06:09:09AM -0700, Ron wrote:
> I have a few programs that randomly die (sshd in RH 7.2 and chbg in RH
> 9.0). Does anyone have a _simple & efficient_ solution to restarting
> them when this occurs?
>
> Failing advice, I'll wrap them in a script of the sort:
>
> start program
> get pid
> loop
> check pid, negative ? stimulate
> snooze...
> endLoop
>
> Thanks for any help!
>
> -Ron
>
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
--
Look ma, no threads[1].
[1] BitTorrent in C is http://www.sf.net/projects/libbt
// .--=,
.....::://::::::::::::::::::::::::::::.. (o O & kevin at ank.com
:::::::://:::://://://:/:://::||_// / V K
:::::://:::://:/:|//'/' // _,|' r , 'qk
:'''/____ // / // |_// // || .'~. .~`,
kls \_/-=\_/
More information about the svlug
mailing list