unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Thompson, David" <dthompson2@worcester.edu>
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: elogind status
Date: Fri, 21 Aug 2015 11:34:44 -0400	[thread overview]
Message-ID: <CAJ=Rwfa0-TYjWk+F6pXFEdxCA_YA7AqYCtA13ntOySrf2UgF6A@mail.gmail.com> (raw)
In-Reply-To: <87wpwo8y9w.fsf@gmail.com>

On Fri, Aug 21, 2015 at 11:19 AM, 宋文武 <iyzsong@gmail.com> wrote:
> Andy Wingo <wingo@igalia.com> writes:
>
>> Hi :)
>>
>> [...]
>>
>> The result is https://github.com/andywingo/elogind.  It provides:
>>
>>   * a logind-compatible API with a different library name, libelogind
>>
>>   * a pkg-config file, libelogind.pc
>>
>>   * a daemon, elogind
>>
>>   * a PAM module, pam_elogind.so
>>
>>   * a query/control utility, loginctl
>>
>> It might be worth it to install more compatibility interfaces for
>> systemd, e.g. libsystemd.so, or a symlink for <systemd/sd-login.h> to go
>> to <elogind/sd-login.h>.  Or perhaps we should just provide the systemd
>> header files with the systemd names.  In practice this means that
>> building packages that use the C interfaces need a bit more munging in
>> Guix to replace names.
> Yeah, as seen in your polkit patch.
>>
>> In the patches I sent to this list, we have also a service which runs
>> elogind, and the facilities to integrate pam_elogind.so with the rest of
>> the system.  The PAM integration is really horrible and I'd be
>> interested in other options; see footnote for my os-config.scm.
>>
>> Upstream logind integrates with systemd to ensure that user sessions are
>> run in cgroups, which is a pretty neat feature.  They manage cgroups
>> with a hierarchical "slice" abstraction.  Perhaps DMD should do this at
>> some point.  Using cgroups also lets logind know when a process was
>> started by a user but the user has logged out, and optionally lets the
>> administrator kill user processes when they log out.  So, elogind will
>> expose information about users, sessions, and seats, but for now not
>> slices.  Most logind users don't care so this is OK.

> Thanks for the detail explaination, maybe we can use cgmanager somehow
> later: <https://github.com/lxc/cgmanager>

I think I'm opposed to this.  I say "I think" because I haven't done
all of my homework yet, but I am just starting to write a Scheme
interface to cgroups for use with 'call-with-container' so I've
learned a thing or two.  I'd like to see dmd use cgroups like systemd
does, but I don't think we need to bring in any LXC tools to do it.
All the LXC stuff I've looked at has been too high level to be useful
to us.  Guile has everything we need. :)

- Dave

  parent reply	other threads:[~2015-08-21 15:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 10:33 elogind status Andy Wingo
2015-08-21 11:48 ` Claes Wallin (韋嘉誠)
2015-08-21 12:11   ` Andy Wingo
2015-08-21 14:14     ` 宋文武
2015-08-21 14:21     ` Thompson, David
2015-08-21 15:19 ` 宋文武
2015-08-21 15:32   ` Andy Wingo
2015-08-21 15:34   ` Thompson, David [this message]
2015-08-25  7:48 ` Andy Wingo
2015-08-27 13:25   ` Ludovic Courtès
2015-08-27 13:58     ` Andy Wingo
2015-08-27 14:20       ` Andy Wingo
2015-08-27 20:47       ` Ludovic Courtès
2015-08-27 13:21 ` Ludovic Courtès
2015-08-27 14:01   ` Andy Wingo
2015-08-27 20:45     ` Ludovic Courtès
2016-02-06 11:07 ` 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='CAJ=Rwfa0-TYjWk+F6pXFEdxCA_YA7AqYCtA13ntOySrf2UgF6A@mail.gmail.com' \
    --to=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@gmail.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).