[CentOS] xServes are dead ;-( / SAN Question

Fri Nov 12 13:25:55 UTC 2010
Stephen Harris <lists at spuddy.org>

On Thu, Nov 11, 2010 at 05:39:15PM -0800, Gordon Messmer wrote:
> On 11/11/2010 03:45 PM, John R Pierce wrote:
> > put the job in a loop like...
> >
> >      while true;  do
> >           your stuff
> >           sleep 60
> >      done;
> 
> Sure, but you also need to start the loop and make sure it doesn't die. 

Put in /etc/inittab
  ms:2345:respawn:/path/to/my/loop_script

(where "ms" is unique).

If the loop dies then init will restart it for you.

-- 

rgds
Stephen