wayvnc exits with status 0 when it loses its capture output (e.g. the idle daemon powering the screen off), so Restart=on-failure never brought it back. Restart=always + StartLimitIntervalSec=0 keeps it retrying until the output returns.
16 lines
315 B
Desktop File
16 lines
315 B
Desktop File
[Unit]
|
|
Description=wayvnc - VNC server for wlroots Wayland compositors
|
|
After=graphical-session.target
|
|
PartOf=graphical-session.target
|
|
Requisite=graphical-session.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/wayvnc
|
|
Restart=always
|
|
RestartSec=5
|
|
StartLimitIntervalSec=0
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|