From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1431 Path: news.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: orphan processes Date: Tue, 05 Jun 2007 20:43:36 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181090625 24765 80.91.229.12 (6 Jun 2007 00:43:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 00:43:45 +0000 (UTC) Cc: supervision@list.skarnet.org To: Adam Megacz Original-X-From: supervision-return-1668-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jun 06 02:43:44 2007 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 1Hvjck-0007V5-RO for gcsg-supervision@gmane.org; Wed, 06 Jun 2007 02:43:42 +0200 Original-Received: (qmail 2327 invoked by uid 76); 6 Jun 2007 00:44:04 -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 2322 invoked from network); 6 Jun 2007 00:44:04 -0000 In-Reply-To: (Adam Megacz's message of "Tue, 05 Jun 2007 17:17:42 -0700") Mail-Copies-To: nobody Mail-Followup-To: Adam Megacz , supervision@list.skarnet.org Original-Lines: 18 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) X-Junkmail-Status: score=10/49, host=mpv4.tis.cwru.edu X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090204.4666033C.00B2,ss=1,fgs=0, ip=129.22.105.51, so=2006-09-22 03:48:54, dmn=5.3.10/2007-02-21 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1431 Archived-At: Adam Megacz wrote: > Somehow script2.sh dies, script3 gets reparented to init (I'm running > runit-as-a-child-of-svrinit), and then eventually when script1 > finishes and the whole thing restarts, I wind up with two copies of > script3.sh. If script1 starts by putting itself in a new process group before spawning any children, then at the end it can send SIGTERM to its process group to kill all related processes. > Anyways, this got me thinking: is there any way in UNIX for the leader > of a process/session group to tell the system that orphan processes in > that group should be reparented to the leader rather than "pid 1"? I don't think so. paul