From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Services and packages in GuixSD Date: Tue, 25 Aug 2015 22:36:28 +0200 Message-ID: <87y4gzhzqr.fsf@inria.fr> References: <87lhdkpfeu.fsf@igalia.com> <87egj9mhq4.fsf@gmail.com> <87y4hh2b26.fsf@igalia.com> 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]:59375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUKxR-0002QC-I6 for guix-devel@gnu.org; Tue, 25 Aug 2015 16:36:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUKxO-00073D-Bd for guix-devel@gnu.org; Tue, 25 Aug 2015 16:36:37 -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: Andy Wingo Cc: guix-devel@gnu.org Andy Wingo skribis: > On Wed 12 Aug 2015 03:13, =E5=AE=8B=E6=96=87=E6=AD=A6 = writes: > >> Andy Wingo writes: >> >>> it would be nice if the set of selected packages and services were >>> grovelled for dbus files. >> >> IIUC, the packages in profile need to be known by those services. >> I think two ways can do this: >> 1. Build a configuration file for the service with packages listed expli= citly. >> 2. Use a configuration file for the service with respect to profile. >> >> Currently, most services go for 1 (eg: dbus, udev). And I don't know a >> clear way to pass packages field to the monadic service procedure. >> >> I did use 2 for slim, by using '/run/current-system/profile/share/xsessi= ons' >> in its configuration file. >> >> How about go with 2 for dbus-service too? >> By using '/run/current-system/profile/share/dbus-1/system-services' in >> its configuration file. > > Sounds reasonable to me. > > This approach introduces a degree of dynamic scoping: the set of > services that d-bus knows about is dynamically scoped relative to the > current profile, whatever the current profile is. So you could do a > "guix system reconfigure" and then the old d-bus daemon would be able to > launch new services, without rebooting. Some people might not like that > but it sounds fine to me. Not having to reboot after =E2=80=98reconfigure=E2=80=99 is generally desir= able, of course (it just happens to not be fully implemented yet.) However, the above means that the reconfigure-but-don=E2=80=99t-switch-until-reboot beha= vior would no longer be possible. So I think we should try to avoid #2 in most cases. Ludo=E2=80=99.