Bug#829537: Add `ConditionPathExists=/dev/console` to `console-getty.service`

Paul Menzel paul.menzel at giantmonkey.de
Mon Jul 4 06:57:53 BST 2016


Package: systemd
Version: 215-17+deb8u4
Severity: normal
Usertags: jessie-backports


Dear Debian folks,


it would be awesome, if you could add commit 1b41981d
(console-getty.service: don't start when /dev/console is missing),
present in systemd since version 220, to systemd 215-17+deb8u4 in Debian
8 (Jessie/stable).

This will will fix a bug, when using Debian 8 as the operating system
for a Docker image/container it hogs one thread(?) of the CPU in certain
cases.

> console-getty.service: don't start when /dev/console is missing 
>
> Create minimal image which runs systemd
> 
>    FROM rhel7.1
>    RUN yum install -y /usr/bin/ps
>    ENV container docker
>    CMD [ "/usr/sbin/init" ]
> 
> When you run the container without -t, the process
> 
>    /sbin/agetty --noclear --keep-baud console 115200 38400 9600
> 
> is not happy and checking the journal in the container, there is a stream of
> 
> ```
> Mar 13 04:50:15 11bf07f59fff agetty[66]: /dev/console: No such file or directory
> Mar 13 04:50:25 11bf07f59fff systemd[1]: console-getty.service holdoff time over, scheduling restart.
> Mar 13 04:50:25 11bf07f59fff systemd[1]: Stopping Console Getty...
> Mar 13 04:50:25 11bf07f59fff systemd[1]: Starting Console Getty...
> Mar 13 04:50:25 11bf07f59fff systemd[1]: Started Console Getty.
> Mar 13 04:50:25 11bf07f59fff agetty[67]: /dev/console: No such file or directory
> Mar 13 04:50:35 11bf07f59fff systemd[1]: console-getty.service holdoff time over, scheduling restart.
> Mar 13 04:50:35 11bf07f59fff systemd[1]: Stopping Console Getty...
> Mar 13 04:50:35 11bf07f59fff systemd[1]: Starting Console Getty...
> Mar 13 04:50:35 11bf07f59fff systemd[1]: Started Console Getty.
> Mar 13 04:50:35 11bf07f59fff agetty[74]: /dev/console: No such file or directory
> Mar 13 04:50:45 11bf07f59fff systemd[1]: console-getty.service holdoff time over, scheduling restart.
> Mar 13 04:50:45 11bf07f59fff systemd[1]: Stopping Console Getty...
> Mar 13 04:50:45 11bf07f59fff systemd[1]: Starting Console Getty...
>```

Please tell me, if I need to do anything else.


Thanks,

Paul


[1] https://github.com/systemd/systemd/commit/1b41981d9a62443d566df6bcabc1b5024e9f5e4a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160704/4206b933/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4971 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160704/4206b933/attachment.bin>


More information about the Pkg-systemd-maintainers mailing list