[Nix-dev] Using Nixpkgs outside of NixOS

Kirill Elagin kirelagin at gmail.com
Wed Jun 4 08:14:49 CEST 2014


http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/

http://cgit.freedesktop.org/systemd/systemd/tree/src/core/main.c#n1469


--
Кирилл Елагин


On Wed, Jun 4, 2014 at 1:21 AM, Wout Mertens <wout.mertens at gmail.com> wrote:

> On Tue, Jun 3, 2014 at 8:30 PM, Kirill Elagin <kirelagin at gmail.com> wrote:
>
>>  Obviously systemd would then have to not do things that udev etc are
>>> already doing... Just running services, opening sockets, handling cgroups...
>>>
>>
>> I doubt systemd can do this.
>> First of all, with the new kernel cgroups interface only PID 1 can manage
>> cgroups (on the kernel level).
>> Then, to properly handle services (i.e. processes) systemd has to be PID
>> 1, right? Because otherwise it won't be able to track dead processes and
>> all this stuff.
>>
>
> Are you sure about PID 1? I can't find that in
> https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt
>
> I'm thinking systemd can run in user-mode, even if it's running as root.
> It's automatically turned on when it's not PID 1, I need to try it.
>
> Wout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140604/bdc9fbab/attachment.html 


More information about the nix-dev mailing list