25 lines
738 B
Django/Jinja
25 lines
738 B
Django/Jinja
[Unit]
|
|
Description=Hermes Dashboard (Web UI)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ hermes_user }}
|
|
Group={{ hermes_group }}
|
|
WorkingDirectory={{ hermes_home }}
|
|
Environment="HOME={{ hermes_home }}"
|
|
Environment="PATH={{ hermes_home }}/.local/bin:/usr/local/bin:/usr/bin:/bin"
|
|
Environment="HERMES_HOME={{ hermes_home }}/.hermes"
|
|
ExecStart={{ hermes_home }}/.hermes/hermes-agent/venv/bin/hermes dashboard --host {{ hermes_dashboard_host }} --port {{ hermes_dashboard_port }}{% if hermes_dashboard_insecure %} --insecure{% endif %}
|
|
|
|
TimeoutStopSec=30
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=hermes-dashboard
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|