prole/infrastructure/roles/dashboard/templates/dashboard.service.j2
chrisfu cf6d79f505 ansible: fix netplan_static YAML, dashboard conky pkg, mariadb vault vars
- netplan_static: avoid Jinja whitespace/indent YAML breakage with trim_blocks; set /etc/netplan perms to 0600; add render+YAML-parse test

- dashboard: install concrete conky provider (conky-all) and add defaults test; wire role into site.yml; document dashboard service usage

- mariadb: add mariadb parent group for group_vars scope; add group defaults deriving datastore password from vault; add vault entry; add vars resolution test; remove host overrides

- misc: update port-forward mappings, generated prole.cfg, and bump prole-db version

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-05 23:02:42 -08:00

26 lines
719 B
Django/Jinja

[Unit]
Description=Prole console dashboard (X + conky)
After=multi-user.target systemd-user-sessions.service
Wants=multi-user.target
# If a graphical desktop is running, starting this service will stop it.
Conflicts=graphical.target
Before=graphical.target
[Service]
Type=simple
# Run the dashboard on the primary console (VT{{ dashboard_vt }}).
# openvt gives the process a controlling TTY so Xorg can take over the display.
ExecStart=/usr/bin/openvt -c {{ dashboard_vt }} -f -- /bin/su -l {{ dashboard_user }} -c {{ dashboard_script_dest | quote }}
Restart=always
RestartSec=2
# Ensure X/conky are terminated when the service stops.
KillMode=control-group
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target