guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Services and packages in GuixSD


From: Andy Wingo
Subject: Re: Services and packages in GuixSD
Date: Wed, 12 Aug 2015 09:57:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

On Wed 12 Aug 2015 03:13, 宋文武 <address@hidden> writes:

> Andy Wingo <address@hidden> 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 explicitly.
> 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/xsessions'
> 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.

Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]