summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn-register.h
AgeCommit message (Collapse)Author
2015-11-09nspawn: support custom container service nameIago López Galeiras
We were hardcoding "systemd-nspawn" as the value of the $container env variable and "nspawn" as the service string in machined registration. This commit allows the user to configure it by setting the $SYSTEMD_NSPAWN_CONTAINER_SERVICE env variable when calling systemd-nspawn. If $SYSTEMD_NSPAWN_CONTAINER_SERVICE is not set, we use the string "systemd-nspawn" for both, fixing the previous inconsistency.
2015-09-07nspawn: split out machined registration code to nspawn-register.[ch]Lennart Poettering