[Unit]
Description=Doris Dashboard local LAN web server
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=fizzlepoof
Group=fizzlepoof
Environment=DORIS_DASHBOARD_DIR=/opt/doris-dashboard
Environment=DORIS_DIGEST_DIR=/home/fizzlepoof/.openclaw/workspace/doris-digest
WorkingDirectory=/opt/doris-dashboard
ExecStartPre=/opt/doris-dashboard/bin/generate_dashboard.py
ExecStart=/usr/bin/python3 /opt/doris-dashboard/bin/dashboard_server.py
ExecStartPost=/opt/doris-dashboard/bin/generate_dashboard.py
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
