From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2078 Path: news.gmane.org!not-for-mail From: Wayne Marshall Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: [announce] perp-2.03: persistent process supervision Date: Mon, 14 Mar 2011 15:02:25 +0100 Organization: b0llix.net: un!x for the deranged Message-ID: <20110314150225.7cf61c3c@b0llix.net> References: <20110314113933.3544df05@b0llix.net> <20110314131706.GA17316@skarnet.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300111376 16103 80.91.229.12 (14 Mar 2011 14:02:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 14:02:56 +0000 (UTC) Cc: supervision@list.skarnet.org To: Laurent Bercot Original-X-From: supervision-return-2312-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Mar 14 15:02:52 2011 Return-path: Envelope-to: gcsg-supervision@lo.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Pz8MA-0002O0-UL for gcsg-supervision@lo.gmane.org; Mon, 14 Mar 2011 15:02:47 +0100 Original-Received: (qmail 26285 invoked by uid 76); 14 Mar 2011 14:05:13 -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 26274 invoked from network); 14 Mar 2011 14:05:13 -0000 In-Reply-To: <20110314131706.GA17316@skarnet.org> X-Mailer: Claws Mail 3.7.7 (GTK+ 2.22.1; x86_64--netbsd) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2078 Archived-At: Hi Laurent, > I just have a question about your design: > > > * easy configuration: in place service activation and no > > symlinks! > > Does that mean that perpd stores all the service states in > memory ? To control or check on services, perpctl and other > utilities connect to perpd via the Unix domain socket, right ? Yes. > So... the dreaded question... what happens if perpd dies ? > Will perpboot restore a sane supervision tree ? > Yes. First, perpd(8) won't die :) If perpd(8) receives SIGTERM, it runs a controlled shutdown of all services under its supervision, and then terminates itself. Under normal (default) configurations, whenever perpd(8) terminates it is restarted by either perpboot(8), or init(8) with a "respawn" configuration in inittab(5). perpd(8) then restarts all services marked for activation in /etc/perp. Wayne