summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn-stub-pid1.c
AgeCommit message (Collapse)Author
2016-02-03nspawn: optionally run a stub init process as PID 1Lennart Poettering
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.