# Hammerhead override of services/hammerhead/console-login.toml shipped
# by zyginit. Removes the syslogd dependency so that:
#
#   - console-login starts in the earliest tier that satisfies utmpd
#     (so ttymon claims /dev/console as ctty before any other daemon)
#   - syslogd's override (overrides/syslogd.toml) declares the reverse
#     edge: requires = ["network", "console-login"]
#
# Without this override, both files together form a dependency cycle
# (console-login → syslogd → console-login) and zyginit refuses to boot
# with "depgraph: dependency cycle detected, cannot boot".
#
# Pairs with zyginit bug 001. Drop both overrides once the supervisor
# is fixed upstream.
[service]
name = "console-login"
description = "Console login (ttymon on /dev/console)"
type = "daemon"
[exec]
start = "/etc/zyginit/services/console-login/start.sh"
[dependencies]
requires = ["utmpd"]
[restart]
on = "failure"
delay = 5
max_retries = 3
[contract]
param = ["inherit", "noorphan"]
fatal = ["hwerr"]
