From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +PvqKjkW0GPVFAEAbAwnHQ (envelope-from ) for ; Tue, 24 Jan 2023 18:32:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QJHlKjkW0GP3awEA9RJhRA (envelope-from ) for ; Tue, 24 Jan 2023 18:32:41 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8D7622003B for ; Tue, 24 Jan 2023 18:32:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKN9Q-0008Vz-6p; Tue, 24 Jan 2023 12:32:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKN9O-0008Vh-V2 for bug-guix@gnu.org; Tue, 24 Jan 2023 12:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKN9O-0000aM-MS for bug-guix@gnu.org; Tue, 24 Jan 2023 12:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pKN9O-0002iF-HB for bug-guix@gnu.org; Tue, 24 Jan 2023 12:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#60657: Rethinking how service extensions work Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 Jan 2023 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60657 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 60657@debbugs.gnu.org Received: via spool by 60657-submit@debbugs.gnu.org id=B60657.167458147210368 (code B ref 60657); Tue, 24 Jan 2023 17:32:02 +0000 Received: (at 60657) by debbugs.gnu.org; 24 Jan 2023 17:31:12 +0000 Received: from localhost ([127.0.0.1]:57501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKN8a-0002hA-Iu for submit@debbugs.gnu.org; Tue, 24 Jan 2023 12:31:12 -0500 Received: from smtpm1.myservices.hosting ([185.26.105.232]:53312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKN8W-0002gz-FF for 60657@debbugs.gnu.org; Tue, 24 Jan 2023 12:31:11 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm1.myservices.hosting (Postfix) with ESMTP id D7E3020511 for <60657@debbugs.gnu.org>; Tue, 24 Jan 2023 18:31:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 6C0CA8009A for <60657@debbugs.gnu.org>; Tue, 24 Jan 2023 18:31:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gnovUycj4TJm for <60657@debbugs.gnu.org>; Tue, 24 Jan 2023 18:31:06 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 1113C80099 for <60657@debbugs.gnu.org>; Tue, 24 Jan 2023 18:31:06 +0100 (CET) Message-ID: <10e6cd1e-644c-b02c-e0a6-bcb110dbd5f1@makinata.eu> Date: Tue, 24 Jan 2023 17:31:05 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US From: Bruno Victal References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674581561; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=RJ0e3+ljpHbkNhzIOFk8Ejt6UPMy/1zPY2KollIIbhc=; b=ZpoXIShiXN8+ctTB1+0/BMA88hD90DOrFn3GOp0SC1Kkz4ddFWxBsEzhIV7QkiR0OhjoRr T5gwr2Ui9Xc1PB9ZpUlFwj6dU2LAIuay11jU2OApfr8WSEm17gu8n/hzawJwg/Jnl09qLE mCSlaA6YBmnJAITwJdT6qH1FT1NDklQyRmECqHL+YvvZPWe829YVhzqwd2DRaOnnFzAMiW n7MoOmgMDbucxC7hRTaKjT9agBeBD8RNks3I6p/4amfiG431J8XGdSv/yTsmVi2VqbgOpq m/ul5PCO138fft9OXUjs5wxBfoUesHXJCyvQIHfx+FZ7IOSPxxH3SfYm0RAl5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674581561; a=rsa-sha256; cv=none; b=WZJMcw6M2R3pl1stffIc8PwYDW7cXQWY9BU69yxf3gwhzHxTARzV6eDFwL7+qz31rpqlxa 5g+5CP7lcdtou2Bldj9GNDwCsFN6VG4N3pD952Yq3PcSNlB34yOtQ+v/QJmAOQydPsSO0L Au29VRmdJrVFBCOpUteELyZB/eYtVDpOVUehZWKlgayzEeIRVM7KQ7uBcwXvcieBdd7aOQ 8A4qsf6DUkbs2YwYSgvHfn3ilhkFy+dJqC3GNUjpkFmCCYIHoGUw0jeWMVVdYnIvdPHH2o GkMCaRDXl41uMK7Ka8l/zv8iiLB9Pf7ebC/Cmz+oEL2+dc7MC6mzaT3KbtUXrQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Spam-Score: -1.58 X-Spam-Score: -1.58 X-Migadu-Queue-Id: 8D7622003B X-TUID: 2I86Jm+nyPln On 2023-01-08 12:31, Bruno Victal wrote: > (...) the issue arises from using activation-service-type to create files/directories for services > when these should be either (1) shepherd one-shot services or moved into the 'start' procedure of the service. Idea: Instead of moving these procedures into the start procedure from shepherd-service and end up with a very large start constructor, we could augment with a 'pre-start' field that is responsible for setting up the initial conditions for the service. That is, we move most of the code in the activation-service-type extensions into this 'pre-start' field. We could also consider if it would make sense adding post-start, pre-stop and post-stop fields. Cheers, Bruno