From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2592 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: eric vidal Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: what init systems do you use ? Date: Tue, 14 May 2019 18:15:36 +1100 Message-ID: <20190514181536.70be3e62e91ba63dde9d798c@obarun.org> References: <11997211556565598@myt6-27270b78ac4f.qloud-c.yandex.net> <15692301556844801@iva7-b6ed732000ae.qloud-c.yandex.net> <20190514055007.hdgghme3mkwgfbud@cathexis.xen.prgmr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179730"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2182-gcsg-supervision=m.gmane.org@list.skarnet.org Tue May 14 09:14:33 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 1hQRdx-000kYT-BO for gcsg-supervision@m.gmane.org; Tue, 14 May 2019 09:14:33 +0200 Original-Received: (qmail 2775 invoked by uid 89); 14 May 2019 07:14:58 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 2768 invoked from network); 14 May 2019 07:14:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=obarun.org; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References: In-Reply-To:Message-Id:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=x5SK8U9tmfeuiu5m1epMer4UTz8u6hmTxqhr8RYkai0=; b=KJw2H9uO5hx4vlI6+HMyEU3fyF GfRrTXEZcPNPQKIhrZs8aJcztlfffISVUdgw0ZM0zwFPDukarWN0bpg31LeDfrjjAlrusrbAVOA5y kAt+nRrbFh0Q9lu+tXUu8sfMGdcxo40JsUWxRj1wsN6/T7TCB/Vc/58s+QPcYnqVo5rg88S+TpLyO nirEglz5RSZv3EU3ozt8wbWmdbkXyBM0aBM1YmHBxRChq0TLYX1SxUQWlEXcuwUYec3RvrBL1u5bO O1KJfPR039GA0fdlXGUC3ihWIkM6kjKQOoHHjVEOmEol1sUXmTi6WtRdCrLhn0MCk1K/fBic1itHP 4jbd0cCw==; In-Reply-To: <20190514055007.hdgghme3mkwgfbud@cathexis.xen.prgmr.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sv75.ifastnet.com X-AntiAbuse: Original Domain - list.skarnet.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - obarun.org X-Get-Message-Sender-Via: sv75.ifastnet.com: authenticated_id: eric@obarun.org X-Authenticated-Sender: sv75.ifastnet.com: eric@obarun.org Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2592 Archived-At: > > BTW: > > > > what init systems do this list's subscribers use ? > > i use statically linked (musl) BusyBox init (and gettys) > > + mksh (https://www.mirbsd.org/mksh.htm) + s6 + OpenRC > > (v0.34.11, outdated) as default init system. > > i also ran perp but now run everything to be supervised > > under s6, started via a little setup shell script directly from > > /etc/inittab (most "one time tasks" are indeed directly run > > from the inittab file instead of a shell script). I use (and share on the web) Archlinux based system under s6+s6-rc from almost 4 years. So, complex system can be handled as bare metal system depending of the user needs. At the start i did a complete set of service by hand + init scripts without the help of s6-linux-init but taking example from this one. Then i did some scripts (in bash) to handles enable/disable/stop/start process and add some features like an s6.conf file to manage some user operations at boot time. The main advantage was to separate the services set of boot from running time which add a level of security mostly for kinda users. This set of service for the boot run out of the box and can be easily adapted for any linux system. After a very few years of experience/use and reports from users, i decided to write a series of tools in C to properly handle a system with s6+s6-rc. This bring up with a lot of features like a frontend declaration file for a service (which handles all kind of service) the automatic creation of a logger, instance service declaration, supports of user supervision tree and so on... I really like skarnet API. Generally speaking his API are good designed and written in low-level, flexible and stable as a rock. The system is very very fast and provide many features without the complexity and hard dependencies as other init system(follow my regards... :) ). For me s6 is the future and should be widely known. It can take time to have a system booting onto it but this worth the pain. Cheers. Eric Vidal