From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1709 Path: news.gmane.org!not-for-mail From: Robin Bowes Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Help with chpst -e Date: Mon, 14 Apr 2008 22:16:29 +0100 Message-ID: References: <20080414083428.GK20279@utopia.intra.guy> <20080414164126.GP20279@utopia.intra.guy> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208207869 15598 80.91.229.12 (14 Apr 2008 21:17:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2008 21:17:49 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1944-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Apr 14 23:18:27 2008 connect(): Connection refused Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1JlW31-0004f8-Qg for gcsg-supervision@gmane.org; Mon, 14 Apr 2008 23:17:07 +0200 Original-Received: (qmail 18384 invoked by uid 76); 14 Apr 2008 21:16:49 -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 18364 invoked from network); 14 Apr 2008 21:16:49 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 84-51-160-74.pambow882.adsl.metronet.co.uk User-Agent: Thunderbird 2.0.0.12 (X11/20080226) In-Reply-To: X-Enigmail-Version: 0.95.6 Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1709 Archived-At: Charlie Brady wrote: > > On Mon, 14 Apr 2008, Robin Bowes wrote: > >> This script: >> >> 1. Uses chpst -e to set some vars from ./env (if ./env exists) >> 2. Uses the name of the service dir as the log user and log dir, if >> the are not set in ./env >> 3. Creates the log dir, if it does not exist, and sets permissions > ... >> Any thoughts? > > IMO directories should be created once and only once, probably at > software install time. > > IMO there should be only one way to set log user and log dir, and I'd be > happy for that to be hard coded. I don't disagree. I was aiming to write a generic script that can be symlinked into the log dir of a service and "just work", but also be customised if required (e.g. using "dnslog" as the log user for dnscache and tinydns) by echoing into ./env. > I like things as simple as possible (but no simpler), as recommended by > Albert. /me too. R.