[Nix-dev] Using Nixpkgs outside of NixOS

Wout Mertens wout.mertens at gmail.com
Tue Jun 3 23:21:12 CEST 2014


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/20140603/4493171b/attachment.html 


More information about the nix-dev mailing list