From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1262 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: apache2 run script Date: Thu, 5 Oct 2006 19:59:47 -0400 (EDT) Message-ID: References: <20061001092939.GA1057@heinlein.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1160092806 11288 80.91.229.2 (6 Oct 2006 00:00:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 00:00:06 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1498-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 06 02:00:04 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GVd85-0000EV-TZ for gcsg-supervision@gmane.org; Fri, 06 Oct 2006 01:59:54 +0200 Original-Received: (qmail 21007 invoked by uid 76); 6 Oct 2006 00:00:15 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 21000 invoked from network); 6 Oct 2006 00:00:15 -0000 X-Spam-Status: No, hits=-1.4 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: charlieb.ott.istop.com X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: Mark In-Reply-To: <20061001092939.GA1057@heinlein.local> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1262 Archived-At: On Sun, 1 Oct 2006, Mark wrote: > Hello. > > On the apache2 run script listed under > > http://smarden.org/runit/runscripts.html#apache2 > > o recent runit-1.6.0 doesn't install '/command/pgrphack' anymore so > '/command/chpst -P' is required > o GNU/Linux too requires '/command/chpst -P' otherwise Apache comes up again > after 'sv down'. > > So this is my current run script: > > #!/bin/sh > exec 2>&1 > exec /command/chpst -P /usr/local/apache2/bin/httpd -DNO_DETACH This is what I have: exec 2>&1 exec chpst -P /usr/sbin/httpd -f $config -D FOREGROUND