[Unit]
Description=Kitchen display agent (Home Assistant MQTT control surface)
Documentation=file:///opt/kitchen-display-agent
After=network.target

[Service]
Type=simple
User=@KIOSK_USERNAME@
Group=@KIOSK_USERNAME@
WorkingDirectory=/opt/kitchen-display-agent
Environment=PYTHONPATH=/opt/kitchen-display-agent
Environment=PYTHONUNBUFFERED=1
EnvironmentFile=-/etc/kitchen-display-agent/config.env
ExecStart=/usr/bin/python3 -m kitchen_display_agent.main
Restart=always
RestartSec=5
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target
