From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <586aa74459bb99e8a715bc932a79b789@quintile.net> References: <586aa74459bb99e8a715bc932a79b789@quintile.net> Date: Tue, 12 May 2009 11:50:42 -0700 Message-ID: Subject: Re: [9fans] auto reconnect for cpu servers From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: f8bbf7b2-ead4-11e9-9d60-3106f5b1d025 On Tue, May 12, 2009 at 11:43 AM, Steve Simon wrote: > Is there a technique or program that can be used on a diskless > cpu server to make it auto-reconnect when the file server reboots? > > I remember reading about the Challange file servers at the labs, > in which (I believe) the cyclone driver would write reboot to > /dev/reboot if the connection dropped. > > Is there somthing similar I could do elegantly with a tcp/ip > connection? I could just do a readdir(2) of / every 10 secs and > reboot if that fails but I assume somthing already exists. aux/reboot there is also recover (gorka should know where the source is these days) but that requires building a custom kernel to connect through it, and i'm not sure how well that particular setup works. russ