[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=/var/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