From owner-freebsd-questions Fri Aug 3 15:42:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nyc.rr.com (nycsmtp1fb.rdc-nyc.rr.com [24.29.99.76]) by hub.freebsd.org (Postfix) with ESMTP id CAE7637B408 for ; Fri, 3 Aug 2001 15:42:26 -0700 (PDT) (envelope-from jslivko@blinx.net) Received: (apparently) from equinox ([24.168.44.136]) by nyc.rr.com with Microsoft SMTPSVC(5.5.1877.357.35); Fri, 3 Aug 2001 18:42:24 -0400 From: "Jonathan M. Slivko" To: "'Graham White'" , "'BSD!'" Subject: RE: Perl -Apache shutdown and restart script Date: Fri, 3 Aug 2001 18:42:42 -0400 Message-ID: <000001c11c6d$9c9e2f30$6401a8c0@equinox> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Why make it restart only Apache, why not make it restart other things too, things that might not be so mission-critical to you. Also, as I always say: if it doesn't work to your expectations, you can always throw hardware at it! -- Jonathan -- Jonathan M. Slivko Blinx Networks, Inc. http://www.blinx.net -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Graham White Sent: Friday, August 03, 2001 6:38 PM To: BSD! Subject: Perl -Apache shutdown and restart script Does anyone have an example of a perl script that constantly loops checking the machines loadaverage, if the loadaverage is higher than a certain number then the script will shutdown and restart a program like apache. Thanks! GW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message