From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1357 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: any way for scripts in /control/ to know value of ? Date: Tue, 12 Dec 2006 23:09:35 +0200 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20061212210935.GC1303@home.power> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165957780 16478 80.91.229.10 (12 Dec 2006 21:09:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 21:09:40 +0000 (UTC) Original-X-From: supervision-return-1593-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Dec 12 22:09:38 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by dough.gmane.org with smtp (Exim 4.50) id 1GuEsc-0000WE-LG for gcsg-supervision@gmane.org; Tue, 12 Dec 2006 22:09:38 +0100 Original-Received: (qmail 22803 invoked by uid 76); 12 Dec 2006 21:10:00 -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 22797 invoked from network); 12 Dec 2006 21:10:00 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1357 Archived-At: Hi! On Tue, Dec 12, 2006 at 12:06:19AM -0800, Adam Megacz wrote: > Subject pretty much explains it. I have a bunch of services whose > control/t files could all be symlinks to the same script if that > script had a way of determining the name of the service being operated > upon. Same goes for /log/run. These scripts can just check current dir because this dir will be / . -- WBR, Alex.