From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2520 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Casper Ti. Vector" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Update on the progress of slew development Date: Mon, 18 Mar 2019 22:44:43 +0800 Message-ID: <20190318144443.GA17160@CasperVector> References: <20190317132532.GA22622@CasperVector> <20190317153002.52c28cf7@dickeberta> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="a8Wt8u1KmwUX3Y2C" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="265669"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.3 (2019-02-01) To: supervision@list.skarnet.org Original-X-From: supervision-return-2110-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Mar 18 15:44:57 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 1h5tVZ-0016sS-Nt for gcsg-supervision@m.gmane.org; Mon, 18 Mar 2019 15:44:57 +0100 Original-Received: (qmail 9718 invoked by uid 89); 18 Mar 2019 14:45:21 -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 9711 invoked from network); 18 Mar 2019 14:45:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WVRATlD8zJJQqnQgLBdDV3G9E8lqoBQs/NqcHYfDT9k=; b=NKMOuv5VLNEvMNt+930mcS3WgxcDVPlDU4jwOL3EfLgBAto3vMAoWOsVvvC1leqi+r SIHFDkp8bUf38OgbUuGSOVMrvZG5IkUjiMuNnrJ+3kijZaxEtDLyaTycJYydiMcRXbiD gqjFme6NZjSxguhgHmf51u0MlsvhPujZSOPwevC484BrGkhE1sN5HEYdZWCPIBOfOrpn 4Q7BnFtlAULB17q/LaejuDCJIgcmUc4a65THk1/qo6b8wexlOSldlJM4cCglCJY4cFIk zzu3/zFCVV4UIEy4Gas5BMTljabuoie8Gc22RCdeD6T6sD3K7tQXL4UUExHZeh6OqYD5 Xwdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=WVRATlD8zJJQqnQgLBdDV3G9E8lqoBQs/NqcHYfDT9k=; b=Fu0A/iuHah/bFm5/3w/IVrdx4u6SLJoILgH5DqGM/ABOzuPYwYeIPy/im9YG//w1F0 Hs9ZvRn5GU4q9QKq9sxiepaND0LjWwQrmQYcs4mKjrpb5dc/xv40beQqjfZxS9XPMARR PGc4rflpRdKOZCu9fAJrvewDgz2ltzOdjZiq87j9srW/v37xcJKnrbH3FkfCB4rBqZg8 n6aMWAJAlW+iuR77W5Jwabyw0PIk3Z4OW/4wbFEQk+Zq+VXHlZYTruspckJFPNghOsxY wJOYSdE861LBUqLKABjn4UOnuStHq3VzDHBiVVPQfw3FWwo1tLnqGN0a/QJaWoI91MD1 lgVA== X-Gm-Message-State: APjAAAWPz1LNlG9vIthPhnx6Fpp3tzICKVVzlNrF+lQkf89lGuzJqaEh FBGpC6PUNnNB+MR6O/cHHnv7UhLSkkc= X-Google-Smtp-Source: APXvYqymOCOKJ7FSIE2igGH8iXRfC6O7ZV0HDNOtlJJ1kTSTcUlfwoJKmCqrW/WcGcuytZrlClGiyQ== X-Received: by 2002:a63:f905:: with SMTP id h5mr17308246pgi.223.1552920292539; Mon, 18 Mar 2019 07:44:52 -0700 (PDT) X-Google-Original-From: "Casper Ti. Vector" Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20190317153002.52c28cf7@dickeberta> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2520 Archived-At: --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Sun, Mar 17, 2019 at 03:30:02PM +0100, Oliver Schad wrote: > So in the end Slew was great to understand, how s6 could be integrated > as a pattern. But the units/scripts itself didn't work for us. I personally use Alpine for servers and Void for desktops, and so did not know what problems distributer might encounter in Debian/Ubuntu. So first of all I need to thank you for attempting to use slew on real-life systems, which is exactly how the slew codebase can evolve to suit more application scenarios. > https://gitlab-2.asag.io/snippets/7 I constructed a slew-managed Ubuntu system with only essential services, udhcpc on eth0, and sshd, reproducible with the following steps: * Install Ubuntu on a VM with `ubuntu-18.04.2-server-amd64.iso'. (Using the US keymap, and with SSH server enabled). * Build static execline, s6 and s6-rc using attached `ska-build.sh' (as root), and tailor slew for Ubuntu using attached `slew-build.sh'. (Better done on an Alpine VM because Ubuntu does not use musl.) * Transfer the `pkgs' directory (with its contents, all produced in the step above) to the Ubuntu VM, run (as root) attached `slew-build.sh' in the directory where `pkgs' reside. I personally find the changes fairly minor, except for these issues: * Debian/Ubuntu do not package eudev, so I used `/sbin/udevd' from Devuan as a workaround; to ensure basic safety, you definitely need to package this yourself for your customised Debian/Ubuntu systems. * One other nuisance is that while the slew-managed system uses ~32M memory after booting, the dracut-generated initramfs barely loads even with 256M, which is an important reason for avoiding Ubuntu. > So may I ask directly: is the plan to provide scripts/units for > everyone, which works almost out of the box? Linux distros are too diverse for slew to fully accomodate, but slew has been designed from the beginning with flexibility in mind: once you successfully customise it for the expected average case of a distro, the user-level customisations would be fairly easy. And as you can see from the attached scripts, the distro-level customisations are, while perhaps non-trivial, quite manageable. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C --a8Wt8u1KmwUX3Y2C Content-Type: application/x-gtar Content-Disposition: attachment; filename="slew-ubuntu.tgz" Content-Transfer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