{{ ansible_managed | comment }} # # /usr/lib/systemd/user/vncserver@.service # # 1. Switches for vncserver should be entered in ~/.vnc/config rather than # hard-coded into this unit file. See the vncserver(1) manpage. # # 2. Users wishing for the server to continue running after the owner logs # out MUST enable 'linger' with loginctl like this: # `loginctl enable-linger username` # # 3. The server can be enabled and started like this once configured: # `systemctl --user start vdesk@:.service` # `systemctl --user enable vdesk@:.service` [Unit] Description=vncserver service - display %i After=syslog.target network.target [Service] EnvironmentFile=%h/.vnc/vncserver.env Type=forking ExecStart=/usr/bin/vncserver -autokill %i $VNCSERVER_OPTIONS ExecStop=/usr/bin/vncserver -kill %i [Install] WantedBy=default.target