diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-03 12:50:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-03 12:51:07 +0200 |
commit | ce38dbc84b40148026801dd29fd0ad1f1b25d3fb (patch) | |
tree | 244cdf17483e5f1b1edae8e1014ac0fcd76ccad6 /units/systemd-nspawn@.service.in | |
parent | 206e7a5f7b55ac61188efd895e65ab26e478cbb2 (diff) |
nspawn: when running in a service unit, use systemd for restarts
THis way we can remove cgroup priviliges after setup, but get them back
for the next restart, as we need it.
Diffstat (limited to 'units/systemd-nspawn@.service.in')
-rw-r--r-- | units/systemd-nspawn@.service.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index e37362847a..574d0deafa 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -13,6 +13,8 @@ Documentation=man:systemd-nspawn(1) ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=guest --directory=/var/lib/container/%i KillMode=mixed Type=notify +RestartForceExitStatus=133 +SuccessExitStatus=133 [Install] WantedBy=multi-user.target |