From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14960 invoked from network); 29 Jan 2021 17:27:31 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 29 Jan 2021 17:27:31 -0000 Received: (qmail 4122 invoked by uid 89); 29 Jan 2021 17:27:49 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 4115 invoked from network); 29 Jan 2021 17:27:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=/KD8xex7He2O4tsLusfAaAGXkbYufkaU5ro2GFiE5L0=; b=m3CiMtkw4B9ES6bMZD72kBKEMjxfWpTElbfyzZLCtLQ1/miA0QNFlcsXkNuC6l1Ddy isvMuTOT5CMYtETS6P4PB0qmZqbquFiNfTM99jCRkpVBFmyjTpaM6aBSLV0ambgaBlmW 8Xr1weTHvHDg2DDU/9uO9SuN332MFZdYrktbXtyixao+BJiMpWimcFaF0eqMvonlR8RG O991W6F/yyk0IDJilQ9MV4xb6rhUXExBmUKx3bYC2RnFQw4cEhQx3KntZVkOK+9Y5A5p 4VadaGu67ER1Y9DtIbFbN+K34Thqsjr2DmIJ/rrzUmFnYzkoPaGvJQnY/P1d/PkXddyG OAlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=/KD8xex7He2O4tsLusfAaAGXkbYufkaU5ro2GFiE5L0=; b=KbgLtTwOORuBRKKiiBmOtlJQqTeH/p1ch6Fs5byVWe/S+soh9h2xuKHRttEvZESvRr tGrgUS5/nGE4VgzPy5kpXjL74GPwIPULfse5cvgdyVAXlK0wOghzD/ytckqzBEDBQljo 4wnBSgB0oOYrsOllQwLzTupSmGbUZc3IHgeXrgvPcP0jNOm44JERyASlJza1pHD8T2Iw V+sgCRz8YRlYhEWTrLCsMXAdxYabj/gVfLKR44kNMcpB/0BUYxhpVYnkkndk6V3OGtYl ln5fEIp9xglEBzwBnH6jUvRu9cLNBRO6AFV477gV1w14lIkgUa5ZfZ/fXmrpMdjHnscF uh5w== X-Gm-Message-State: AOAM533X4niTuzEc0phlH2SZCJXTqZskK7ywcGjuvnz+pzcMjzJvPXJG 7IRFlTdNiYNEKNeivWrOl/subodD8mXc8J7oqXVVvmWN X-Google-Smtp-Source: ABdhPJww29VEvNdO9NcUYHvFrVoxl330xpDHrGhSvKQqFE/O2ZAHXaOmcaRk/Wv01UkT7Z3tcqsrDTyv0vWgagkvtk8= X-Received: by 2002:a6b:2d4:: with SMTP id 203mr4593309ioc.0.1611941241105; Fri, 29 Jan 2021 09:27:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Guillermo Date: Fri, 29 Jan 2021 14:27:10 -0300 Message-ID: Subject: Re: Some suggestions on old-fashioned usage with s6 2.10.x To: Supervision Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El vie, 29 ene 2021 a las 0:07, Casper Ti. Vector escribi=C3=B3: > > Not using s6-linux-init has never been an explicit goal, [...] > > Currently I do not understand the `s6-linux-init-shutdown(d)' way > well, so the old-fashioned way is retained at least for now, [...] Forgive me if I'm misunderstanding aspects of the architecture, but jugdging from a quick look at the Git repository, I *think* that you could depend on s6-linux-init (the package): * You could replace /etc/slew'/init/rc.boot with s6-linux-init (the program), or a wrapper script around it. s6-linux-init does more or less the same as the current script, except running load_clock.rc (which you could do in /etc/slew'/init/rc.init). * You could move the current /etc/slew/run to /etc/s6-linux-init/current/run-image when installing slew. I'm not sure what skalibs' hiercopy() would do if the latter is just a symlink to the former. * You could replace /etc/slew'/init/rc.halt with a service directory for s6-linux-init-shutdownd in /etc/slew'/run/service, just like you do now for the catch-all logger. s6-linux-init-shutdownd does more or less the same as the current script, except running save_log.rc, save_clock.rc and calling swapoff. You can move that to /etc/slew'/init/rc.fin, or /etc/s6-linux-init/current/rc.shutdown.final if you must do some of it after killing all processes and unmounting filesystems. * You could symlink /etc/s6-linux-init/current/rc.{init,shutdown} to /etc/slew'/init/rc.{init,fin}, perhaps with some minimal modifications. * You could replace calls to s6-svscanctl in /etc/slew'/run/service/.s6-svscan/SIG* with calls to s6-linux-init-hpr if you want to be able to do e.g. 'busybox poweroff''. * You could replace /etc/slew'/run/service/.s6-svscan/finish with something simpler, instead of being a symlink to /etc/slew/init/rc.halt. G.