Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

29 lines
857B

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