From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1154 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: killing an entire process group? Date: Fri, 9 Jun 2006 12:22:35 +0300 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20060609092235.GM19319@home.power> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149844980 24502 80.91.229.2 (9 Jun 2006 09:23:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2006 09:23:00 +0000 (UTC) Original-X-From: supervision-return-1390-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jun 09 11:22:58 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 1FodCP-0001c2-KD for gcsg-supervision@gmane.org; Fri, 09 Jun 2006 11:22:37 +0200 Original-Received: (qmail 11550 invoked by uid 76); 9 Jun 2006 09:22:58 -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 11544 invoked from network); 9 Jun 2006 09:22:58 -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.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1154 Archived-At: Hi! On Thu, Jun 08, 2006 at 07:54:01PM -0700, Adam Megacz wrote: > Is there any way to tell runit that signals for a supervised service > must be sent to the entire process group rather than just the > immediate child of runsv? > > I'm specifically trying to get k5start to work. It spawns a > user-specified process as a child, but periodically reawakens to > refresh the relevant kerberos/afs credentials. Right now runit sends > a TERM to k5start, which dies, but then the user process (which was a > child of k5start) becomes an orphaned process and keeps running > forever. Write your own handler of TERM signal. man runsv (CUSTOMIZE CONTROL section). -- WBR, Alex.