blob: 43b190afaf900f12b1b19209c48d8161affabeef [file] [log] [blame]
Filip Pytloun281d0202016-01-29 14:03:51 +01001# {{ 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
6start on stopped rc RUNLEVEL=[2345] and (
7 not-container or
8 container CONTAINER=lxc or
9 container CONTAINER=lxc-libvirt)
10
11stop on runlevel [!2345]
12
13respawn
14exec /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 %}