unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@igalia.com>
Cc: guix-devel@gnu.org
Subject: Re: Services and packages in GuixSD
Date: Tue, 25 Aug 2015 22:36:07 +0200	[thread overview]
Message-ID: <871terjebs.fsf@inria.fr> (raw)
In-Reply-To: 87y4hh2b26.fsf@igalia.com

Andy Wingo <wingo@igalia.com> skribis:

> On Wed 12 Aug 2015 03:13, 宋文武 <iyzsong@gmail.com> writes:
>
>> Andy Wingo <wingo@igalia.com> 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.

Not having to reboot after ‘reconfigure’ is generally desirable, of
course (it just happens to not be fully implemented yet.)  However, the
above means that the reconfigure-but-don’t-switch-until-reboot behavior
would no longer be possible.  So I think we should try to avoid #2 in
most cases.

Ludo’.

  reply	other threads:[~2015-08-25 20:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09 16:58 Services and packages in GuixSD Andy Wingo
2015-08-12  1:13 ` 宋文武
2015-08-12  7:57   ` Andy Wingo
2015-08-25 20:36     ` Ludovic Courtès [this message]
2015-08-26  7:15       ` Andy Wingo
2015-08-26 10:54         ` Ludovic Courtès
2015-08-26 11:06           ` Andy Wingo
2015-08-28  9:08             ` Ludovic Courtès
2015-08-25 20:36     ` Ludovic Courtès
2015-08-25 13:45 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871terjebs.fsf@inria.fr \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=wingo@igalia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).