[Unit]
Description=Nucleic: boot-health snapshot to the serial console
Documentation=https://github.com/abkslm/nucleic/blob/main/docs/LINUX_VM.md
# Diagnosability for boots the host cannot reach: when the vsock agent is down there is no exec
# channel, so this pushes the control-plane state out through the serial console instead (the host
# keeps it as provision.log / console.log). See nucleic-bootdebug.sh for what is reported.
After=multi-user.target nucleic-linux-agent.service

[Service]
# simple, NOT oneshot: the script sleeps before sampling, and nothing may wait on that.
Type=simple
ExecStart=/usr/local/sbin/nucleic-bootdebug.sh

[Install]
WantedBy=multi-user.target
