Funk-lab/ansible/roles/hermes_agent/templates/hermes-dashboard.service.j2
2026-05-12 18:01:50 +02:00

24 lines
659 B
Django/Jinja

[Unit]
Description=Hermes Agent Web Dashboard
After=hermes-agent.service
Wants=hermes-agent.service
[Service]
User={{ hermes_user }}
Group={{ hermes_user }}
Environment=HOME={{ hermes_home }}
Environment=HERMES_HOME={{ hermes_data_dir }}
Environment=PATH={{ hermes_data_dir }}/node/bin:{{ hermes_data_dir }}/hermes-agent/venv/bin:/usr/local/bin:/usr/bin:/bin
ExecStart={{ hermes_home }}/.local/bin/hermes dashboard --no-open --tui --insecure --host {{ ansible_host }} --port {{ hermes_dashboard_port }}
Restart=on-failure
RestartSec=10s
StandardOutput=journal
StandardError=journal
SyslogIdentifier=hermes-dashboard
[Install]
WantedBy=multi-user.target