From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/985 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: exceline & supervision Date: Wed, 11 Jan 2006 16:39:30 +0100 Message-ID: <20060111153930.GA5817@skarnet.org> References: <2DC959620A73E842969792F5B47FCA0102107701@dg-exch1.giessen.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136993992 17695 80.91.229.2 (11 Jan 2006 15:39:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 15:39:52 +0000 (UTC) Original-X-From: supervision-return-1221-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jan 11 16:39:46 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 1Ewi45-0003Ry-LH for gcsg-supervision@gmane.org; Wed, 11 Jan 2006 16:39:09 +0100 Original-Received: (qmail 6147 invoked by uid 76); 11 Jan 2006 15:39:30 -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 6141 invoked by uid 1000); 11 Jan 2006 15:39:30 -0000 Mail-Followup-To: supervision@list.skarnet.org Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <2DC959620A73E842969792F5B47FCA0102107701@dg-exch1.giessen.nl> User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:985 Archived-At: > #!/command/excelineb In a run script, you could use: #!/command/execlineb -P Your environment will be cleaner. > foreground { ./bin/runcmd } > Can anyone see problems with this setup ? You won't have any execline-specific problems. But instead of having a /bin/sh hanging around, you'll have a /command/foreground hanging around. ... supervise foo \_ foreground \_ foo instead of ... supervise foo \_ foo This means that you won't be able to use svc to send signals to your service. It's better to forget post-cmd entirely, and have your run script exec into your service. If you really need a post-cmd, switch from daemontools to runit, and use runsv's "finish script" feature. -- Laurent