From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Proposal: auto-instantiate services with a default value Date: Tue, 09 Jan 2018 14:42:21 +0100 Message-ID: <87r2qzqhc2.fsf@elephly.net> References: <87y3l7wgf5.fsf@gnu.org> <20180109115926.7e72673b@scratchpost.org> <87zi5nte0j.fsf@gnu.org> 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]:60561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYxh3-0004pW-6E for guix-devel@gnu.org; Tue, 09 Jan 2018 12:28:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYxh0-0002XC-Nh for guix-devel@gnu.org; Tue, 09 Jan 2018 12:28:09 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYxh0-0002Wj-JQ for guix-devel@gnu.org; Tue, 09 Jan 2018 12:28:06 -0500 In-reply-to: <87zi5nte0j.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel Ludovic Court=C3=A8s writes: >> Also, that means that the instantiated mcron-service would automatically= get a rottlog entry even though the mcron-service-types's default job list= is empty, right ? > > Correct. > >> In that case it would be nice to be able to (optionally) override this m= cron-service by a custom mcron-service in /etc/config.scm but retain the mo= dified 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? I think auto-instantiation is great when it all shows up with =E2=80=9Cguix system extension-graph=E2=80=9D and users can thus figure out why certain services were instantiated unexpectedly. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net