From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Service refactoring Date: Wed, 23 Sep 2015 20:33:27 -0400 Message-ID: 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]:52194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeuTd-0004uR-38 for guix-devel@gnu.org; Wed, 23 Sep 2015 20:33:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeuTY-00016O-FI for guix-devel@gnu.org; Wed, 23 Sep 2015 20:33:33 -0400 Received: from mail-yk0-f182.google.com ([209.85.160.182]:33394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeuTY-000164-BO for guix-devel@gnu.org; Wed, 23 Sep 2015 20:33:28 -0400 Received: by ykft14 with SMTP id t14so58975585ykf.0 for ; Wed, 23 Sep 2015 17:33:27 -0700 (PDT) In-Reply-To: <877fnjn4nd.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel On Mon, Sep 21, 2015 at 12:00 PM, Ludovic Court=C3=A8s wrote= : > 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. 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. This is really great stuff. :) - Dave