From owner-freebsd-questions@FreeBSD.ORG Fri Sep 21 15:33:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C527F16A418 for ; Fri, 21 Sep 2007 15:33:00 +0000 (UTC) (envelope-from mikel.king@techally.com) Received: from athena.ocsny.com (athena.ocsny.com [204.107.76.113]) by mx1.freebsd.org (Postfix) with ESMTP id 8132013C478 for ; Fri, 21 Sep 2007 15:33:00 +0000 (UTC) (envelope-from mikel.king@techally.com) Received: from [10.1.0.48] ([10.1.0.48]) by athena.ocsny.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Sep 2007 11:23:24 -0400 In-Reply-To: <46F3DB96.4050406@triera.net> References: <46F3DB96.4050406@triera.net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Mikel King Date: Fri, 21 Sep 2007 11:30:48 -0400 To: Aleksander Rozman - Andy X-Mailer: Apple Mail (2.752.2) X-OriginalArrivalTime: 21 Sep 2007 15:23:24.0343 (UTC) FILETIME=[59E41470:01C7FC63] Cc: freebsd-questions@freebsd.org Subject: Re: reboot on problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 15:33:00 -0000 On Sep 21, 2007, at 10:56 AM, Aleksander Rozman - Andy wrote: > Hi ! > > I am running FreeBSD as server. Thing is working great, there is > only one problem. Sometimes machine looses connection to > internet... Which is quite a problem, since this computer is on > remote location, which I only access once a week or less. I would > need application (or something), which would check if computer can > connect to gateway, in case that it can it would do nothing, but in > case it can't it would make soft reboot... > > Is there anything that I could achive this with? Any idea is > welcome... Please cc: message to my private address (reply all > should do this) > > Thanks in advance > Andy You could write a shell script to check the connection at a set interval and take corrective action should it encounter a problem. Cheers, Mikel King CITO, Tech Alliance, INC Senior Editor, Daemon News 39 West Fourteenth Street Second Floor New York, NY 10011 http://www.techally.com http://www.daemonnews.org t: 212.727.2100x132 +------------------------------------------+ How do you spell cooperation? Pessimists use each other, but optimists help each other. Collaboration feeds your spirit, while competition only stokes your ego. You'll find the best way to get along. +------------------------------------------+