From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2138 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: What is the process group hack Date: Fri, 27 Apr 2012 03:20:25 +0200 Message-ID: <20120427012025.GA23967@skarnet.org> References: <20120426202753.1cc24411@b0llix.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1335489405 4572 80.91.229.3 (27 Apr 2012 01:16:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2012 01:16:45 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2372-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Apr 27 03:16:45 2012 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SNZnc-0000cC-Nq for gcsg-supervision@plane.gmane.org; Fri, 27 Apr 2012 03:16:40 +0200 Original-Received: (qmail 24660 invoked by uid 76); 27 Apr 2012 01:20:25 -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 24651 invoked by uid 1000); 27 Apr 2012 01:20:25 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20120426202753.1cc24411@b0llix.net> User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2138 Archived-At: Just to clarify: There are two different tools that should not be confused. * The "process group hack" tool, prgphack. It's not a real hack, it's just a call to setsid(2). * The "foreground hack", fghack. This one is a real unadulterated 100% ugly hack. It's used to allow self-backgrounding processes to be still managed by a supervisor. Documentation - sparse, but accurate - about those tools can be found on the daemontools web site: http://cr.yp.to/daemontools/fghack.html http://cr.yp.to/daemontools/pgrphack.html > It should be mentioned that daemontools itself should be > considered deprecated by several alternatives currently > available and under active maintenance. For example, runit, > daemontools-encore, and perp. And s6. Please. :P -- Laurent