From owner-freebsd-questions Fri Aug 3 15:32: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gandalf.vi.bravenet.com (gandalf.bravenet.com [139.142.105.50]) by hub.freebsd.org (Postfix) with SMTP id 0F90A37B408 for ; Fri, 3 Aug 2001 15:32:03 -0700 (PDT) (envelope-from graham@bravenet.com) Received: (qmail 17287 invoked from network); 3 Aug 2001 22:39:20 -0000 Received: from unknown (HELO grahamwork) (192.168.30.9) by 0 with SMTP; 3 Aug 2001 22:39:20 -0000 From: "Graham White" To: "BSD!" Subject: Perl -Apache shutdown and restart script Date: Fri, 3 Aug 2001 15:38:14 -0700 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 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