# Console Login
#
# Spawns the login prompt on the system console (/dev/console).
# Restarts when the login session ends so that a new login prompt
# appears.

[service]
name = "console-login"
description = "Console Login"
type = "daemon"

[exec]
start = "/usr/lib/getty console"

[stop]
method = "contract"
signal = "TERM"
timeout = 10

[dependencies]
requires = ["filesystem", "hostname", "timezone"]
after = ["syslog"]

[contract]
param = ["inherit", "noorphan"]
fatal = ["empty"]

[restart]
on = "always"
delay = 1
max_retries = -1
