From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2522 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: Tue, 19 Mar 2019 20:42:39 +0800 Message-ID: <20190319124239.GA26884@CasperVector> References: <20190317132532.GA22622@CasperVector> <20190317153002.52c28cf7@dickeberta> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="217280"; 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-2112-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Mar 19 13:42:48 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 1h6E4u-000uQh-A2 for gcsg-supervision@m.gmane.org; Tue, 19 Mar 2019 13:42:48 +0100 Original-Received: (qmail 3187 invoked by uid 89); 19 Mar 2019 12:43:14 -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 3180 invoked from network); 19 Mar 2019 12:43:13 -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=w53CEEcD6deSxzNg9IJBHq5YpW9YxmS57uULbTaV+rc=; b=PD4kJM4I4gCQZbqOeFK3ZBT/mOG4Qz/bGkDFcOXVU6eBZ2VWsSGbsd8BFtdgPE+3yJ 8RvhYMBYPGcALgEyz8HSLOJ0ZPmLjHKCr2/gk0dkgxFJciZlP+qXR2lvFiIsZoiXNyXJ YCrsk7RjGPsT2iNdPXKXC8M9bAY1AGrivQn5k8jLNpWtuZ1ZzpOz1Ojk20Xtb4s1f3ms 5TyFHJqJEIV2Hr9exnLQciasuTxvS+paAgvY+urMVagjtSx4eeE8s6UD055vMKQoJjEz zmObHhqGAdk9bCj2sKtzTXBOgCRr61n3+XaVktnQpB1hq17EVqaZfkAM7UaCY1XyvAU2 naPA== 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=w53CEEcD6deSxzNg9IJBHq5YpW9YxmS57uULbTaV+rc=; b=ZQnLCilh5opC0J1UWOVtGdzdONdOskH1ONYYhU0t6/Ozzc/10tkjWI/Ingu0856Jpx mJLklfMW8GQgAPyKC1d2xElUpycBRiKKwsEpcpH3hOvlL62rS1mq67tIjFSHqbNrViLo kd7EygANRqO6PbNkpUAJWchg0yLEd3Qc2dd3XV6VOPVxYboh3Ht8tuW6WLQG0a91zKMX iv/0imDJUn9jDLihkEFcZ8AZNITdUuGf681TFcTAN4iVinLgSVGLXd1bzOeXS459mdCR Ru1Lw9z6NlNu69FXxp6BEUt0X2UZzbB8LSlfkLgQbfe4wzgKEPEwM9V+azlAy8ebpjy5 LapQ== X-Gm-Message-State: APjAAAVi5RqEvtugo/UF7ckDW0FlhLJ1PgMjn4QiViduf9gatNGMd6Qf IsvRSwiq4gAIT9k59Lh+6rIiazIfuuE= X-Google-Smtp-Source: APXvYqyCKjDrWi+cT6qsE0OLMgoytBzj16Z74FzGephMdM/t6xbVgyaBCVm4v/kNPp1AF9ntu4Js+A== X-Received: by 2002:ac2:44a6:: with SMTP id c6mr7584060lfm.31.1552999366011; Tue, 19 Mar 2019 05:42:46 -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:2522 Archived-At: On Sun, Mar 17, 2019 at 03:30:02PM +0100, Oliver Schad wrote: > https://gitlab-2.asag.io/snippets/7 A closer look at this snippet reveals that most changes therein are: 1. Customisations of `s6-log.rc', probably modifying the logging user. 2. Addition of unshipped services (eg. postfix). 3. Deletion of unused services (eg. dcron and busybox cron). 4. Other regular customisations similar to what I showed yesterday. Regarding 1, if you (as I guessed) want to just use `nobody' for all logs (which is, BTW, strongly discouraged!), I have just pushed commit a1ffc647 so you can simply delete `s6-log.rc' of services for this purpose, provided that you do not plan to change the $args or $logd of these services. Regarding 2 and 3, and noticing the presence of `db' and `prep.main' (BTW, `prep.main' and `db/old.main' are supposed to be deleted after successful `lib/build.rc'/`s6-rc-update' invocations), it is likely that you directly cloned slew's git repository into /etc. I personally think this makes updating complicated; and since git ignores ownership, permission bits (except for the `x' bit) and empty directories, the structure of /etc/slew would drift from the expected status in certain conditions. Instead, I think a better way to distribute slew is to break it into multiple packages for the intended distro, with the packaging script(s) essentially performing the jobs of yesterday's `slew-build.sh' and `ubuntu-conf.sh': * A "base" package: including the `init' / `run' directories, absolutely essential services in `base', and a small `main' config somewhat like the shipped one). * Multiple packages for other services (eg. OpenVPN and wpa_supplicant): each including the necessary service definitions in `base', and corresponding ancillary files in `misc'. * The most important ancillary files are preprocessing passes like `misc/openvpn/70-openvpn.rc', which should of course be installed into /etc/slew/lib/prep. They are not directly put into `lib/prep' because unlike extra service definitions in `base', extra preprocessing passes results in actual overhead when `lib/prep.rc' is run. (The user can disable preprocessing passes by removing the `x' bit from the corresponding files, cf. `lib/prep.rc'). * Patches like `misc/thinkfan/thinkfan-0.9.3-fglog.patch' are intended to be applied to distro packages to increase their compliance with s6's way of longrun management (usually about logging), and therefore can be omitted from the service packages. Other ancillary files are intended to be installed into locations outside of /etc/slew, like `misc/wpa_supplicant/wpa_cli.rc' should be installed into /etc/wpa_supplicant, in accordance with `base/wpacli./run'. Perhaps these intentions were not as clear as I thought they should implicitly (inferred from the codebase) be; I am sorry for that. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C