Subject: Re: Radius (Livingston) on NetBSD
To: Giles Lean <giles@nemeton.com.au>
From: Andrew Brown <codewarrior@daemon.org>
List: port-i386
Date: 04/22/1997 18:28:25
>> would anyone be interested in adding a cute little respawning daemon
>> to the tree?  something that runs a program and then starts it again
>> when it dies?
>
>On SysV init will do this for you, of course.  Usually on *BSD
>something like the following is sufficient, although it runs in a
>tight loop if you ask it to start something that fails immediately.
>
>	#! /bin/sh
>
>	case "$#" in
>	0)	echo "usage: restart command [arg ...]" 1>&2
>		exit 1
>		;;
>	esac
>
>	while :
>	do
>		"$@"
>	done

sure, it sort of accomplishes the same kind of thing, but it's
not nice, is it?  i made a program that has a velocity control
in it (for things that die too quickly) and logs all output to
syslog (instead of losing it to /dev/null or /dev/console.

-- 
|-----< "CODE WARRIOR" >-----|
andrew@echonyc.com (TheMan)        * "ah!  i see you have the internet
codewarrior@daemon.org                               that goes *ping*!"
warfare@graffiti.com      * "information is power -- share the wealth."