# Hammerhead's first port-provided zyginit service.# Graphical login via xdm on the console framebuffer. Runs as ROOT (xdm# itself drops privileges per session), so NO `user` field. Shipped# DISABLED: this port creates no /etc/zyginit/enabled.d/xdm symlink.## Coexists with console-login: the decoupled X server lives on its own VT# (vtdaemon holds vt1, X gets vt2), so it does NOT contend for /dev/console.# Ctrl-Alt-F# switches between the greeter (vt2) and the text consoles.[service]
name = "xdm"description = "Graphical login (xdm on the console framebuffer)"type = "daemon"[exec]
start = "/etc/zyginit/services/xdm/start.sh"[dependencies]
# vtdaemon MUST be up first: it configures the kernel VT subsystem, without# which Xorg's VT_WAITACTIVE bring-up hangs (started with no ctty by zyginit).requires = ["utmpd", "filesystem", "vtdaemon"]
after = ["devfs"]
[contract]
param = ["inherit", "noorphan"]
fatal = ["hwerr"]
[restart]
on = "failure"delay = 5max_retries = 3