From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Proposal: auto-instantiate services with a default value Date: Tue, 09 Jan 2018 21:42:28 +0100 Message-ID: <87wp0qsr0r.fsf@gnu.org> References: <87y3l7wgf5.fsf@gnu.org> <20180109115926.7e72673b@scratchpost.org> <87zi5nte0j.fsf@gnu.org> <87r2qzqhc2.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ0jF-0003Cw-7t for guix-devel@gnu.org; Tue, 09 Jan 2018 15:42:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ0jB-00019q-Sw for guix-devel@gnu.org; Tue, 09 Jan 2018 15:42:37 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:33364) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZ0jB-00017w-Lh for guix-devel@gnu.org; Tue, 09 Jan 2018 15:42:33 -0500 In-Reply-To: <87r2qzqhc2.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 09 Jan 2018 14:42:21 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: Guix-devel Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >>> Also, that means that the instantiated mcron-service would automaticall= y get a rottlog entry even though the mcron-service-types's default job lis= t is empty, right ? >> >> Correct. >> >>> In that case it would be nice to be able to (optionally) override this = mcron-service by a custom mcron-service in /etc/config.scm but retain the m= odified configuration with the implicit job in it. Is that possible? >> >> Sure, the current way to do things (which is to explicitly list rottlog >> *and* mcron) would remain valid, and you could pass your own mcron >> config this way. > > If a user already had an mcron service with a custom configuration, > it would still be extended as needed by adding the rottlog-service =E2=80= =94 or > am I mistaken? Yes. Basically an existing currently-working configuration will still work exactly the same. The novelty is that one would now be able to omit services that are indirectly needed. > I think auto-instantiation is great when it all shows up with =E2=80=9Cgu= ix > system extension-graph=E2=80=9D and users can thus figure out why certain > services were instantiated unexpectedly. Yes. Speaking of which, it=E2=80=99d be great to have an interactive view = of service folding (d3.js?)=E2=80=A6 Ludo=E2=80=99.