From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Proposal: auto-instantiate services with a default value Date: Tue, 9 Jan 2018 11:59:26 +0100 Message-ID: <20180109115926.7e72673b@scratchpost.org> References: <87y3l7wgf5.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]:53606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYrd0-0007qM-4M for guix-devel@gnu.org; Tue, 09 Jan 2018 05:59:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYrcx-00037n-4U for guix-devel@gnu.org; Tue, 09 Jan 2018 05:59:34 -0500 In-Reply-To: <87y3l7wgf5.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 =?ISO-8859-1?Q?Court=E8s?= Cc: Guix-devel Hi Ludo, On Tue, 09 Jan 2018 10:05:34 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > We discussed some time ago the possibility to automatically instantiate > services. Now that service types have default value, I think it=E2=80=99= s a > viable approach: if a service is required, and *if* it provides a > default value, then we can automatically instantiate it. >=20 > So in the example above, you=E2=80=99d just specify =E2=80=98rottlog-serv= ice-type=E2=80=99 and > an =E2=80=98mcron-service-type=E2=80=99 would be automatically added if i= t=E2=80=99s not already > there. Yes, as long as there's a way for the user to easily see what it instantiat= ed (in the running system). Also, that means that the instantiated mcron-service would automatically ge= t a rottlog entry even though the mcron-service-types's default job list is= empty, right ? In that case it would be nice to be able to (optionally) override this mcro= n-service by a custom mcron-service in /etc/config.scm but retain the modif= ied configuration with the implicit job in it. Is that possible?