Bug 1295275

Summary: Update comments in vncserver configuration file example
Product: Red Hat Enterprise Linux 7 Reporter: amit yadav <ayadav>
Component: tigervncAssignee: Jan Grulich <jgrulich>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.2CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:29:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1203710, 1297830, 1313485    

Description amit yadav 2016-01-04 04:47:50 UTC
Description of problem:

$ more /lib/systemd/system/vncserver@.service
  # The vncserver service unit file
  #
  # Quick HowTo:
  # 1. Copy this file to /etc/systemd/system/vncserver@.service
  # 2. Edit <USER> and vncserver parameters appropriately
  #   ("runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2")
  # 3. Run `systemctl daemon-reload`
  # 4. Run `systemctl enable vncserver@:<display>.service`


In step 2. of comment section, actually 2 lines need to be modified instead of just the first line

("runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2")

It should be 

ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/USER/.vnc/%H%i.pid

Please update the Quick HowTo in comments to be consistent with RHEL documentation (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-TigerVNC.html).

Version-Release number of selected component (if applicable):
tigervnc-server-1.3.1-3.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. N.A.

Actual results:
The vncserver configuration file suggest to modify <USER> in only one line. 
"runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2"

Expected results:
The vncserver configuration file should suggest to modify <USER> in following two lines:

ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/USER/.vnc/%H%i.pid

Comment 2 Jan Grulich 2016-01-19 07:59:27 UTC
Easy fix, can be fixed in RHEL 7.3.

Comment 3 Jan Grulich 2016-03-24 09:53:58 UTC
Fixed in tigervnc-1.3.1-5.el7.

Comment 7 errata-xmlrpc 2016-11-04 01:29:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2237.html