[systemd-devel] Shutting down service using systemd-nspawn
Peter Paule
systemd-devel at fedux.org
Fri Jun 12 08:25:43 PDT 2015
> Not sure I follow: why do this indirectly by killing nspawn?
> Why not send this to the container init directly?
>
> Note that if you know the nspawn PID, you can derive the external PID
> of the init process easily by reading
> /proc/$PID/task/$PID/children. It will only container one PID, and
> that's init.
That's an easy one. I didn't know how to get that pid. Thanks a lot
More information about the systemd-devel
mailing list