From: Lennart Poettering Date: Tue, 9 Dec 2014 01:12:11 +0000 (+0100) Subject: units: make sure container-getty@.service stops restarting when the pts device it... X-Git-Tag: v218~69 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=68ac53e62fadb87f1b33ccd9bff9c3f7f699c937;p=elogind.git 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 --- diff --git a/units/container-getty@.service.m4.in b/units/container-getty@.service.m4.in index 4f7794b50..512046692 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