[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