Improve instructions in vncserver.service

Resolves: bz#1397207
This commit is contained in:
Jan Grulich 2016-11-23 07:21:43 +01:00
parent 5feba83ba3
commit 814af42d14

View File

@ -2,8 +2,9 @@
# #
# Quick HowTo: # Quick HowTo:
# 1. Copy this file to /etc/systemd/system/vncserver@.service # 1. Copy this file to /etc/systemd/system/vncserver@.service
# 2. Edit User= # 2. Replace <USER> with the actual user name and edit vncserver
# ("User=foo") parameters appropriately
# ("User=<USER>" and "/home/<USER>/.vnc/%H%i.pid")
# 3. Run `systemctl daemon-reload` # 3. Run `systemctl daemon-reload`
# 4. Run `systemctl enable vncserver@:<display>.service` # 4. Run `systemctl enable vncserver@:<display>.service`
# #
@ -35,7 +36,7 @@ After=syslog.target network.target
[Service] [Service]
Type=forking Type=forking
User= User=<USER>
# Clean any existing files in /tmp/.X11-unix environment # Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i ExecStartPre=-/usr/bin/vncserver -kill %i