[systemd-devel] Calculating Web page loads accurately with systemd-nspawn's network-veth & Xorg

Lennart Poettering lennart at poettering.net
Mon Aug 24 05:05:14 PDT 2015


On Sun, 23.08.15 21:58, Kai Hendry (hendry at webconverger.com) wrote:

> Hi there,
> 
> I've managed to get Firefox running like so:
> 
> sudo systemd-nspawn --setenv=DISPLAY=:0 \
>                --setenv=XAUTHORITY=~/.Xauthority \
>                --bind-ro=$HOME/.Xauthority:/root/.Xauthority \
>                -D ~/containers/firefox \
>                firefox

I'd be careful with things like this... You invoke firefox as PID 1
then. On UNIX PID 1 is special, it needs to reap foreign children and
needs to handle signals differently, thus taking arbitrary processes
and running them like this is problematic.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list