From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Service refactoring Date: Thu, 24 Sep 2015 09:41:39 +0200 Message-ID: <87r3lomfgs.fsf@gnu.org> References: <87a8t3mc2v.fsf@netris.org> <87d1xyk45i.fsf@igalia.com> <87vbbn44zi.fsf_-_@gnu.org> <87a8shp05k.fsf@gnu.org> <87r3lsrxqp.fsf@igalia.com> <877fnjn4nd.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]:41463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1A1-0000vE-Hl for guix-devel@gnu.org; Thu, 24 Sep 2015 03:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf19y-0001c9-AS for guix-devel@gnu.org; Thu, 24 Sep 2015 03:41:45 -0400 In-Reply-To: (David Thompson's message of "Wed, 23 Sep 2015 20:33:27 -0400") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel "Thompson, David" skribis: > On Mon, Sep 21, 2015 at 12:00 PM, Ludovic Court=C3=A8s wro= te: >> Andy Wingo skribis: >> >>> On Sun 20 Sep 2015 15:42, ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>>> I=E2=80=99m quite happy with the result, but comments are welcome! I= =E2=80=99ll convert >>>> some more services to see how it goes. >>> >>> Neat! Sounds great. One question: there are some services like colord >>> or geoclue that don't need to be managed by DMD, but are just declared >>> as services so that their users are created, there /var/foo directories >>> are created, etc. The can be started by D-Bus as needed. Does the new >>> design support services of this kind? >> >> Yes it does. >> >> =E2=80=98colord=E2=80=99 will =E2=80=9Cextend=E2=80=9D the D-Bus service= by giving it its package object >> (thus its .service files), it will extend the activation service by >> providing it #~(mkdir "/var/foo"), and it will extend the account >> service by passing it its user accounts/groups. > > I'm picturing an enhanced 'nginx-service' that is able to accept site > configuration files from other services (say, a MediaGoblin service) > and it sounds like a great feature. Yes, that=E2=80=99s the idea. > Now, is the following scenario possible?: 'mediagoblin-service' can > extend both 'apache-service' and 'nginx-service', and when the system > configuration is realized, the web service the user has chosen is > extended. If it makes sense, there could be a single =E2=80=98web-service-type=E2=80= =99 that both Apache httpd and NGINX would implement. The MediaGoblin service would extend them by providing something like a vhost specification I suppose? Now, perhaps we would need separate =E2=80=98httpd-service-type=E2=80=99 and =E2=80=98nginx-service-type=E2=80=99 if httpd and NGINX happen to be extens= ible in different ways. I don=E2=80=99t really know these tools, but it would be g= ood to see how we would do it. WDYT? Ludo=E2=80=99.