[ale] Looking for software to keep processes running.
Chris Fowler
cfowler at outpostsentinel.com
Thu Feb 5 10:59:19 EST 2004
while (1) {
switch((pid = fork())) {
case -1:
exit(1);
case 0:
execl("/bin/program", "/bin/program", 0);
exit(1);
default:
waitpid(pid, NULL, 0);
}
}
All program must be ran in the foreground and not become a daemon.
On Thu, 2004-02-05 at 10:42, Jim Lynch wrote:
> I've got a number of scripts that start processes that run in user space
> that I'd like to keep running. (RH 7.2). Is there a utility that would
> help me? I know I can write a script that would do a ps periodically and
> make sure the process was still running and if not start it up, but I was
> just curious if there was a utility that would automate that process. I
> googled for something, but didn't see anything promising, except a
> reference to Big Brother.
>
> THanks,
> Jim.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list