]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: optionally run a stub init process as PID 1
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Feb 2016 19:32:06 +0000 (20:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Feb 2016 22:58:24 +0000 (23:58 +0100)
commit7732f92bad5f24a4bd03bb357af46da56b0ac94d
tree10e33a8ec564376365e05a0f12681a73aab40986
parent021dd87bc055a5bfb2dcef83fc868fe24648b959
nspawn: optionally run a stub init process as PID 1

This adds a new switch --as-pid2, which allows running commands as PID 2, while a stub init process is run as PID 1.
This is useful in order to run arbitrary commands in a container, as PID1's semantics are different from all other
processes regarding reaping of unknown children or signal handling.
Makefile.am
man/systemd-nspawn.xml
man/systemd.nspawn.xml
src/nspawn/nspawn-gperf.gperf
src/nspawn/nspawn-settings.c
src/nspawn/nspawn-settings.h
src/nspawn/nspawn-stub-pid1.c [new file with mode: 0644]
src/nspawn/nspawn-stub-pid1.h [new file with mode: 0644]
src/nspawn/nspawn.c