Files
pdtv26/status/pdtv26-status.service
T
dckc 7957d88ff9
check / check (push) Canceled after 0s
fixup! feat(status): a status page, for the phone of whoever looks after the box
install the app in /usr/local/lib/pdtv26-status, not in the state
directory: with DynamicUser, systemd makes /var/lib/pdtv26-status its
own symlink to /var/lib/private, and the service failed at
STATE_DIRECTORY ("File exists"). The package's check now catches a unit
that runs a program from its own StateDirectory.

Generated-by: Claude Opus 5.5
2026-12-02 18:38:37 -06:00

28 lines
887 B
Desktop File

[Unit]
Description=pdtv26-status: the agent's status page, on the private network
After=network-online.target
Wants=network-online.target
[Service]
# GET / is the page; the box POSTs /event and /heartbeat. It checks the box's ir capability, the
# speech server, and the brain's channel; make install writes them, host:port, to the targets file.
# The private network is the boundary: no key.
EnvironmentFile=/etc/pdtv26-status/targets
ExecStart=/usr/local/lib/pdtv26-status/app/bin/status-server :: ${PORT} /var/lib/pdtv26-status ${NAME} ${BOX} ${SPEECH} ${BRAIN}
DynamicUser=yes
StateDirectory=pdtv26-status
IPAddressDeny=any
IPAddressAllow=localhost @ranges@
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
MemoryMax=200M
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target