From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2531 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeff Newsgroups: gmane.comp.sysutils.supervision.general Subject: special s6-svscan/perp(d) catch-all logger service option Date: Thu, 25 Apr 2019 20:09:03 +0200 Message-ID: <48006661556215743@iva7-8175209a746b.qloud-c.yandex.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="94268"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2121-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Apr 25 20:09:11 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hJio2-000ONx-Fr for gcsg-supervision@m.gmane.org; Thu, 25 Apr 2019 20:09:10 +0200 Original-Received: (qmail 21890 invoked by uid 89); 25 Apr 2019 18:09:34 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21883 invoked from network); 25 Apr 2019 18:09:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1556215744; bh=R0vMkc6Gi20d+rKnAaXgP5zI6OmsJGcGE6+8E775O4Y=; h=Message-Id:Date:Subject:To:From; b=Vmjpu5kD7GzoQWxNA/g8cDzaWApTaQ7ikNMVxQlNl8svBLUE9EFPVYnpEuZPO+Q4b LEVI88lRcoZZcWZIF5/Pls39D5eL/Fgv/iPpj3uqE1CaCNceVr409Ou0qVnFoiE6Pp 2VCVQBOyBHZ3dHzLMM2Y6FsKhf149JKB5LBObRSg= Authentication-Results: mxback3j.mail.yandex.net; dkim=pass header.i=@yandex.com X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2531 Archived-At: hello, i am a new subscriber to this mailing list. i saw that daemontools-encore svscan provides an option to specify a special catch-all logging service for svscan and its child supervise processes: svscan [ directory ] [ log-service ] If the 'log-service' option is specified and the named subdirectory exists, svscan starts the service found there and redirects its output through it. This service is started before any other (since it is the very important catch-all logger for (among others) svscan's own output). it would be very nice for s6(-svscan) and perp(d) to provide such functionality too. this would simplify starting them directly from init(tab) (or use as init stage 2 in the case of s6) to a great extent as they would do their output redirections by themselves and also supervise this special catch-all logging service directly which would init free from this additional task. now init has only to supervise (and restart) one process (s6-svscan/perpd) instead of 2 (the additional catch-add logger) which of course is much easier to achieve. when using s6-svscan for init stage 2 this would also simplify the stage 1 script greatly since it can just directly exec into stage 2 now (by using this option) without doing the output redirection for s6-svscan by itself. i also think that this can be achieved without too much effort and since it is an optional feature would not break compatibility with earlier versions and hence older scripts should still work without requiring any changes. kind regards.