From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1701 Path: news.gmane.org!not-for-mail From: Andras Korn Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Help with chpst -e Date: Mon, 14 Apr 2008 10:40:18 +0200 Message-ID: <20080414084018.GL20279@utopia.intra.guy> References: <20080414083428.GK20279@utopia.intra.guy> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 X-Trace: ger.gmane.org 1208162426 32736 80.91.229.12 (14 Apr 2008 08:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2008 08:40:26 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1936-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Apr 14 10:41:03 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 1JlKFH-0001eu-Mj for gcsg-supervision@gmane.org; Mon, 14 Apr 2008 10:40:59 +0200 Original-Received: (qmail 19852 invoked by uid 76); 14 Apr 2008 08:40:41 -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 19847 invoked from network); 14 Apr 2008 08:40:41 -0000 Content-Disposition: inline In-Reply-To: <20080414083428.GK20279@utopia.intra.guy> User-Agent: Mutt/1.5.16 (2007-06-11) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1701 Archived-At: On Mon, Apr 14, 2008 at 10:34:29AM +0200, Andras Korn wrote: > #!/bin/sh > if [ "$1" = "have-env" ]; then > exec chpst -u "$LOGUSER" svlogd -tt "$LOGDIR" \ > else > exec chpst -e ./env "$0" have-env > fi The \ is unnecessary in line 3, sorry. Andras -- Andras Korn QOTD: Choose: (E)-mail or (F)emale?