Better fix for PIDFile problem (bug #983232).

This commit is contained in:
Tim Waugh 2013-09-18 13:16:14 +01:00
parent 043067f3fd
commit f987b84e95
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
Name: tigervnc
Version: 1.3.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A TigerVNC remote display system
Group: User Interface/Desktops
@ -340,6 +340,9 @@ fi
%{_datadir}/icons/hicolor/*/apps/*
%changelog
* Wed Sep 18 2013 Tim Waugh <twaugh@redhat.com> 1.3.0-5
- Better fix for PIDFile problem (bug #983232).
* Mon Aug 5 2013 Tim Waugh <twaugh@redhat.com> 1.3.0-4
- Fixed doc-related build failure (bug #992790).

View File

@ -34,10 +34,12 @@ Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver -fg %i"
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
PIDFile=/home/<USER>/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target