Filip Pytloun | 281d020 | 2016-01-29 14:03:51 +0100 | [diff] [blame] | 1 | # {{ name }} - getty |
| 2 | # |
| 3 | # This service maintains a getty on tty1 from the point the system is |
| 4 | # started until it is shut down again. |
| 5 | |
| 6 | start on stopped rc RUNLEVEL=[2345] and ( |
| 7 | not-container or |
| 8 | container CONTAINER=lxc or |
| 9 | container CONTAINER=lxc-libvirt) |
| 10 | |
| 11 | stop on runlevel [!2345] |
| 12 | |
| 13 | respawn |
| 14 | exec /sbin/getty{% if tty.get('autologin', False) %} --autologin {{ tty.autologin }}{% endif %} -8 {{ tty.get('rate', 38400) }} {{ name }}{% if tty.term is defined %} {{ tty.term }}{% endif %} |