summaryrefslogtreecommitdiff
path: root/units/container-getty@.service.m4.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-09 02:12:11 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-09 02:12:11 +0100
commit68ac53e62fadb87f1b33ccd9bff9c3f7f699c937 (patch)
treeacd208b94a7ab1b203cff8780e27d45b9e754705 /units/container-getty@.service.m4.in
parent088c357d1337931104bbfdf9f8ead4a64dd6900d (diff)
units: make sure container-getty@.service stops restarting when the pts device it is bound to is gone
We only want to restart the getty as long as the pts device is still around. As soon as it is gone, the service should be removed to. http://lists.freedesktop.org/archives/systemd-devel/2014-December/026048.html
Diffstat (limited to 'units/container-getty@.service.m4.in')
-rw-r--r--units/container-getty@.service.m4.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/container-getty@.service.m4.in b/units/container-getty@.service.m4.in
index 4f7794b502..5120466929 100644
--- a/units/container-getty@.service.m4.in
+++ b/units/container-getty@.service.m4.in
@@ -14,6 +14,7 @@ After=rc-local.service
)m4_dnl
Before=getty.target
IgnoreOnIsolate=yes
+ConditionPathExists=/dev/pts/%I
[Service]
ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600 $TERM