Skip to content

Instantly share code, notes, and snippets.

@pollosp
Created February 29, 2016 19:00
Show Gist options
  • Save pollosp/9f3ae16c5461f6a55b7e to your computer and use it in GitHub Desktop.
Save pollosp/9f3ae16c5461f6a55b7e to your computer and use it in GitHub Desktop.
root@debianJessie:~# cat /etc/init/tty1.conf
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)
stop on runlevel [!2345]
respawn
exec /sbin/getty -8 38400 tty1
root@debianJessie:~# cat /etc/init/tty3.conf
# tty3 - getty
#
# This service maintains a getty on tty3 from the point the system is
# started until it is shut down again.
start on runlevel [23] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)
stop on runlevel [!23]
respawn
exec /sbin/getty -8 38400 tty3
root@debianJessie:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment